PDA

View Full Version : Adding Class over the list



babar.sajjad
1 Feb 2011, 9:17 AM
hi
i want to add a class or html over the list my list is some thing like this


var list = new Ext.List({
itemTpl : [
'<div class="roundedBorder">',
'<div>',
'<div class="homeList">',
'<div class="{logoCls} fltL">{module}</div>',
'<div class="arrowRt fltR"></div>',
'</div>',

'</div>',
'<div class="p10 homeMainListDesc">{description}</div>',
'</div>'
],
singleSelect: true,
allowDeselect: false,
indexBar: true,
store: itemStore,
listeners: {
itemtap: function (view, index, item, e){

}
}
});

when it get renders i wanted the list to be surrounded by a div etc which have my defined class, is it possible ?