Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked September 23rd 2010 by Alan Young
  • classname
  • iphone
  • property
  • row
  • tableview
0 Comments

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';

    — answered September 25th 2010 by Eddie Monge
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.