Filter in grid header extjs 6
问题 How to create a filter in the grid headers? I found this snippet: https://stackoverflow.com/a/22015160/5775332 and updated to compatibility with 6th version: Ext.define('Fiddle.view.SearchTrigger', { extend: 'Ext.form.field.Text', alias: 'widget.searchtrigger', requires: [ 'Ext.form.trigger.Trigger' ], defaultListenerScope: true, triggers: { search: { handler: function(field, trigger, e) { this.setFilter(this.up().dataIndex, this.getValue()); }, cls: 'x-form-search-trigger' }, clear: {