/** * This filter type uses a combobox with an array store to display * the boolean values */Ext.define('Ext.grid.plugin.filterbar.filters.Boolean', { extend: 'Ext.grid.plugin.filterbar.filters.SingleFilter', alias: 'grid.filterbar.boolean', requires: [ 'Ext.form.field.ComboBox' ], type: 'boolean', operator: '==', operators: ['==', '!='], fieldDefaults: { xtype: 'combobox', queryMode: 'local', editable: true, forceSelection: true }, trueText: 'Yes', falseText: 'No', trueValue: 1, falseValue: 0, getFieldConfig: function() { var me = this, config = me.callParent(); config.store = [ [me.trueValue, me.trueText], [me.falseValue, me.falseText] ]; return config; }});