PDA

View Full Version : cls for labels



raj_plays
8 Mar 2011, 10:54 PM
Hi,
I am trying to apply a class to all items(labels) in a vbox. The cls attribute doesn't seem to work.


{
layout: 'column',
border: false,
width: 200,
items: [{
layout: 'vbox',
height: 200,
layoutConfig: {
align: 'left',
pack: 'start'
},
columnWidth: 0.75,
defaults: {
xtype: 'label',
width: 150,
height: 25,
cls: 'grid-hd-group-cell'
},
items: [{
text: 'Original price'
}, {
text: 'Price at Min Discount'
}, {
text: 'Price at Max Discount'
}, {
text: 'No. of buyers for final discount'
}, {
text: 'Max no. of deals'
}, {
text: 'No. of winners'
}]
}]
}


I want each item of the vbox to look like a grid header.
Please help.