Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-813] appendRow on table view does not support headers

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.3.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:37:03.000+0000
Updated2011-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();

Comments

  1. Jeff Haynie 2011-04-15

    (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...

JSON Source