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 = grid.getHeaderFilter("country").getFilter();
console.log(filter1);
// -> returns Combobox
//  {config: {…}, _uid: 'u1670500020936', events: o, data: d, popup: f, …}


const filter2 = grid.getHeaderFilter("netChange").getFilter();
console.log(filter2);
// -> returns an HTML object
// {type: 1, attrs: {…}, tag: 'div', _class: 'dhx_grid-filter__label dxi dxi-magnify',
// ref: 'netChange_filter', …}

Change log:

added in v8.0