miroperez
31 Jan 2011, 4:28 PM
from the examples in:
http://dev.sencha.com/deploy/touch/docs/?class=Ext.XTemplate
Is there a way to get directly to the kids[0].name property in the tpl?
I tried:
var tpl = new Ext.XTemplate(
'<p>KID 0: {kids[0].name}</p>','
);
But that didn't seem to work. Or is there a way to write a function which can do the logic to return a default if there are 0 items?
http://dev.sencha.com/deploy/touch/docs/?class=Ext.XTemplate
Is there a way to get directly to the kids[0].name property in the tpl?
I tried:
var tpl = new Ext.XTemplate(
'<p>KID 0: {kids[0].name}</p>','
);
But that didn't seem to work. Or is there a way to write a function which can do the logic to return a default if there are 0 items?