Tableview style problem
Hi, here is my code for a tableview. But it doesn't work. It returns me
Titanium.UI.iPhone.TableViewStyle[undefined] is not an object
My code:
var win = Titanium.UI.currentWindow;
var data=[
{title:'Language: ENGLISH', hasChilde:true, header:'Appearance'},
{title:'Allow Streaming ', header:'Streaming'}
];
var tableView=Titanium.UI.createTableView({
data:data,
style: Titanium.UI.iPhone.TableViewStyle.GROUPED
});
win.add(tableView);
anyone can help me? thanks!!!
1 Answer
-
Accepted Answer
var data=[ {title:'Language: ENGLISH', hasChilde:true, header:'Appearance'}, {title:'Allow Streaming ', header:'Streaming'} ];
Should be:
var data = [ {title:'Language: ENGLISH', hasChild:true, header:'Appearance'}, {title:'Allow Streaming ', header:'Streaming'} ];