更新时间:2023-11-26 11:11:46
查看示例这里。它使用一个名为CheckBoxColumn的插件(您将必须查看源代码并找到该JS文件。
Have a look at the sample here. It uses a Plugin called CheckBoxColumn (you will have to View Source and find the JS file.
插件文件中的一些用法...
Some example usage from the Plugin's file...
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
...
});