开发者

sencha touch :: adding badgeText to list items

开发者 https://www.devze.com 2023-03-13 14:04 出处:网络
What would be the best way to add some badgeText to the Items of a List开发者_开发百科-Panel?o.k., so one way to add badge text to a list item is to add the following code to the xtemplate/itemTpl:

What would be the best way to add some badgeText to the Items of a List开发者_开发百科-Panel?


o.k., so one way to add badge text to a list item is to add the following code to the xtemplate/itemTpl:

...
'<span class="x-badge ">4</span>',
...


Sencha Touch 2.1

xtype: 'list',
itemId: 'listMainMenu',
store: 'storeMainMenu',
fullscreen: false,
itemTpl: '<span class="x-badge ">{BadgeText}</span>'

and it's not working.

DOM result:

<div class="x-innerhtml " id="ext-element-104"><span class="x-badge ">1</span></div>

sencha touch :: adding badgeText to list items

0

精彩评论

暂无评论...
验证码 换一张
取 消