PDA

View Full Version : actioncolumn ignore defaults



gaellafond
26 Jun 2011, 4:25 PM
Ext.grid.column.Action (actioncolumn) ignore the default attributes.


...
{
xtype:'actioncolumn',
width:75,
defaults: {
iconCls: 'grid-icon' // This is ignored
},
items: [
{
icon: 'icons/edit.png',
iconCls: 'grid-icon', // iconCls is applied here
tooltip: 'Edit',
handler: function(grid, rowIndex, colIndex) { ... }
}, {
icon: 'icons/preview.png',
// iconCls is not applied here
tooltip: 'Preview',
handler: function(grid, rowIndex, colIndex) { ... }
}, { ... }
]
}
...