문제

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>

View result

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top