Bri*_*kau 50
在Ext 3.4中,您将需要使用Ext.grid.CheckColumn插件下载中包含的EditorGrid示例中演示的插件.
在Ext 4+中,内置了一个CheckColumn类型(xtype: 'checkcolumn').可以在API文档中找到更多信息.这是一个包含当前版本Ext中可编辑复选框列的示例(基本上不可能跟上每个版本的URL).
以下是版本4+中复选框列的列配置的示例:
xtype: 'checkcolumn',
header: 'Active?',
dataIndex: 'active', // model property to bind to
width: 60,
editor: {
xtype: 'checkbox',
cls: 'x-grid-checkheader-editor'
}
Run Code Online (Sandbox Code Playgroud)