在extjs中过滤网格数据
我想使用extjs中的复选框来过滤网格。这是我的复选框在extjs中过滤网格数据,extjs,filter,grid,Extjs,Filter,Grid,我想使用extjs中的复选框来过滤网格。这是我的复选框 xtype: 'checkboxfield', id: 'cb1', boxLabel: 'Online', checked: true, handler: function (field, value) { } xtype: 'checkboxfield', id: 'cb2', boxLabel: 'offline', checked: true, handler: function (field, value) { } 我想要的是
xtype: 'checkboxfield',
id: 'cb1',
boxLabel: 'Online',
checked: true,
handler: function (field, value) { }
xtype: 'checkboxfield',
id: 'cb2',
boxLabel: 'offline',
checked: true,
handler: function (field, value) { }
我想要的是,当我选择它时,它会过滤我的商店。它应该告诉商店显示在线记录和/或离线记录
我读了一些关于布尔过滤器的内容,所以可能需要使用布尔过滤器,但我不知道如何使用。在处理程序上使用商店的过滤器方法
handler: function (field, value) {
store.filter('online', value);
}
如何对多个值进行排序?例如:store.filter('color',红色和蓝色)??您可以使用user store.filterBy方法进行多个列或复杂筛选。您可以阅读文档以了解用法