if-else statement in itemTpl in Sencha Touch Anonymous User654614-Jun-2013Hi,How to write if-else statement in itemTpl configuration of list in Sencha Touch.Any help on above is really appreciated.sencha touchsencha touch Updated on 25-Jun-2013
Sumit Kesarwani
25-Jun-2013itemTpl: [
'<tpl if="boolean == \'true\'">',
' <p>{name}</p>',
' <tpl else>',
' <p>Boolean is false</p>',
'</tpl>'
]
If you want to learn more about itemTpl configuration , then you can read my article:
If- else statement in itemTpl configuration