Package: | Ext.ux.grid |
Defined In: | CheckColumn.js |
Class: | CheckColumn |
Extends: | Object |
Example usage:
// create the column
var checkColumn = new Ext.grid.CheckColumn({
header: 'Indoor?',
dataIndex: 'indoor',
id: 'check',
width: 55
});
// add the column to the column model
var cm = new Ext.grid.ColumnModel([{
header: 'Foo',
...
},
checkColumn
]);
// create the grid
var grid = new Ext.grid.EditorGridPanel({
...
cm: cm,
plugins: [checkColumn], // include plugin
...
});
In addition to storing a Boolean value within the record data, this
class toggles a css class between 'x-grid3-check-col' and
'x-grid3-check-col-on' to alter the background image used for
a column.