-
23 Jan 2013 8:26 PM #1
Answered: How do you include a sencha touch icon within itemTpl
Answered: How do you include a sencha touch icon within itemTpl
If I have a list with the following:
Then how do I correctly replace the word LOCKED with the sencha touch icon "sdk/resources/themes/images/default/pictos/lock_closed.png"Code:itemTpl: '{name} <tpl if="is_locked == 0">LOCKED</tpl>',
Best Regards,What comes around goes around
-
Best Answer Posted by shepsii
If you use a DOM inspector to see how Sencha Touch does icons for buttons, you can easily replicate this with your own HTML and CSS.
Works for me, not sure if I also have extra CSS or not...Code:itemTpl: new Ext.XTemplate( '<span class="{iconCls} x-list-icon x-icon-mask"></span>', '{title}' ),
-
23 Jan 2013 11:59 PM #2
If you use a DOM inspector to see how Sencha Touch does icons for buttons, you can easily replicate this with your own HTML and CSS.
Works for me, not sure if I also have extra CSS or not...Code:itemTpl: new Ext.XTemplate( '<span class="{iconCls} x-list-icon x-icon-mask"></span>', '{title}' ),


Reply With Quote