PDA

View Full Version : badgeText in NestedList item



foton
5 Sep 2011, 1:51 AM
Hi all,

I have a problem to add badgeText in NestedList item.

I have try like these ones, but seem they have no effect.



this.navigationPanel = new Ext.NestedList({


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


//itemTpl: new Ext.XTemplate('<div>{text}<span class="x-badge">4</span></div>'),


//badgeText:'7',


getItemTextTpl: function () {
return '<div>{text}</div> <span class="x-badge">4</span>';
},
....
....




am I missing something in my code??

Thanks.