I have a list I am creating like so:
var listTpl = new Ext.XTemplate(
'<div class="menuListItemContainer">',
'<h1>MENU</h1>',
'<tpl for=".">',
'<div class="menuListItem">',
'{title}',
'</div>',
'</tpl>',
'</div>',
'<div class="x-clear"></div>'
);
I have a Json file where the {title} is coming from, what i’d like to do but not sure how is the last item in the last I would like to attach a class for styling purposes.
Any ideas?
I’m not in a position to execute this code, but I think something along these lines would do the trick: