Skip to main content

getFilter()

returns either an HTML object or an object with Combobox configuration

getFilter(): HTML object | Combobox;

Returns:

Either an HTML object or an object with Combobox configuration

Example

const filter1 = treegrid.getHeaderFilter("name").getFilter();
console.log(filter1);
// -> returns Combobox
//  { config: {…}, _uid: 'u1670576316762', events: o, data: d, popup: f, … }


const filter2 = treegrid.getHeaderFilter("native").getFilter();
console.log(filter2);
// -> returns an HTML object
// { type: 1, attrs: {…}, tag: 'label', _class: 'dhx_grid-filter__label dxi dxi-menu-down',
// ref: 'native_filter', … }

Change log:

added in v8.0