简体   繁体   中英

Sencha Touch List Component

I have 2 questions. First, is this possible to use List item in sencha touch without template? I mean, can i access the list item seperately?

The second one is related with the first one. I need to send my store item in template as a function parametere how can i do this? I tried below but does not work.

template = new Ext.XTemplate(
'<div style="width:100%;height:40px;">',
'<span>{c}</span><span style="font-size:10px" >{e}</span>',
'<span>           ',
'<tpl for=".">',
        '<span onload="formatNumber({i})">{i}</span>',
'</tpl></span>',
'</div>',
{

Thanks,

The list items' HTML is in the property all.elements . That will give you the HTML DOM node of each item in the list. The property isn't public so it may break in a future version.

I don't really understand what you are trying to do. You can render anything with a template.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM