Check documentation for the latest version of DHTMLX Pivot setFiltersValues Pivot Docs

setFiltersValues

sets filters for the specified fields

void setFiltersValues(object filters);
filtersobjecta hash with fields names and related filter configuration objects

Example

pivot.setFiltersValues({
    "form":{filter: "republic", operation: "ct",values: ["Republic"]},
    "name":{filter: "a", operation: "ct",values: ["Argentina","Austria"]}
});

Details

Each element of the hash with filters presents a key:value pair, where the key is the id of the field and the value is the configuration of the filter.

Each filter configuration object contains the following properties:

  • operation - (string) the type of the filtering operation. It's set for filters that work with string and number values. See details for date filters.
  • filter - (string) the input value to compare with possible values of the field
  • values - (array) an array of data values matching to the input value
See also
Back to top