[TIMOB-813] appendRow on table view does not support headers
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.3.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:37:03.000+0000 |
Updated | 2011-04-17T01:54:19.000+0000 |
Description
see code - header for new rows is ignored
var win = Ti.UI.createWindow();
var b = Ti.UI.createButton({
title:'Append Row',
width:200,
height:30,
top:10
});
win.add(b);
b.addEventListener('click', function()
{
var row = Ti.UI.createTableViewRow({header:'Bar'});
var l = Ti.UI.createLabel({
text:' I am a new row',
height:30,
width:200
});
row.add(l);
tableview.appendRow(row)
}); var data = [
{title:'Row 1'},
{title:'Row 2'},
{title:'Row 3'},
{title:'Row 4',header:'too'}
];
var tableview = Ti.UI.createTableView({
data:data,
top:50
});
win.add(tableview);
win.open();
(from [11e4a2746625db7ddda3042b7e4ceea244e190f7]) Closes #813: Addition of TiUITableViewActionAppendRowWithSection action, which allows for appendRow to accept headers. http://github.com/appcelerator/titanium_mobile/commit/11e4a2746625db7ddda3042b7e4ceea244e190f7"> http://github.com/appcelerator/titanium_mobile/commit/11e4a2746625d...