Setting the className property
Hi I have been told setting the className property on all rows in a table view is the way to create a reusable tableview row format.
Can someone show me how to set the className property on all rows.
Thanks in Advance
1 Answer
-
It is best to do it when you are adding the rows themselves:
var row = Ti.UI.createTableViewRow ({ height:90, className: 'news', });
Or after you create the row:
row.className = 'news';