Skip to main content

getFilter()

returns either an HTML object, or an object with Combobox/Calendar configuration

getFilter(): VNode | Combobox | Calendar;

Returns:

Either an HTML object, or an object with Combobox/Calendar 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:

  • The method may return an object with Calendar configuration since v9.3
  • Added in v8.0