Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17617] iOS: Adding titleAttributes to Ti.UI.TableViewRow

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
LabelsTCSupport
ReporterJoseph Sachs
AssigneeUnknown
Created2014-08-22T00:55:23.000+0000
Updated2018-02-28T20:04:19.000+0000

Description

This is more of a nice to have :) Instead of adding a Label within a TableViewRow, _(while crossing over the JSbridge into Native to create a Label & Row)_ is to have the possibility to have titleAttributes to the Row's title (see this for more on TableViewRow performance: http://docs.appcelerator.com/titanium/latest/#!/video/97758718 ??@10:37?? ). Ideally is to have the possibility to modify the *titleAttributes* of Rows as objects to be placed in an Array and then passed to the TableView's data: example:
var myRows = [ {title:'Programs', titleAttributes: {color:'blue', font: {fontFamily:'Snell Roundhand', fontSize:36} } },
               {title:'Another Row', titleAttributes: {... } },
               {title:'A Third Row', titleAttributes: {...} } ]
tableView.setData(myRows);
The above would be much more performant than creating a Label within a TableViewRow for each row.

Comments

No comments

JSON Source