[TIMOB-14844] Add titleId property for TableViewRow
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Core |
Labels | tableview, tableviewrow, titleid |
Reporter | Matej |
Assignee | Unknown |
Created | 2013-08-10T08:56:04.000+0000 |
Updated | 2018-02-28T20:04:18.000+0000 |
Description
*Note*
We can use workaround with locale function L("string"), but this is annoying especially when is developer using Alloy because then you need to set title in a .tss file instead of XML.
*Example*
var win = Titanium.UI.createWindow();
var data = [
{ title: 'Adrian' }, // titleid: "name"
{ title: 'Andrew' }, // titleid: "name",
{ title: 'Barry' }, // titleid: "name",
{ title: 'Betty' } // titleid: "name",
];
var tableView = Ti.UI.createTableView({
width: Ti.UI.FILL, height: Ti.UI.FILL,
data: data
});
win.add(tableView);
win.open();
No comments