[TIMOB-17617] iOS: Adding titleAttributes to Ti.UI.TableViewRow
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.3.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | TCSupport |
Reporter | Joseph Sachs |
Assignee | Unknown |
Created | 2014-08-22T00:55:23.000+0000 |
Updated | 2018-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.
No comments