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

addFilter

adds a new filter for the data

void addFilter(string id,function handler);

Deprecated

use instead:

idstringthe ID of the field
handlerfunctiona handler for filtering, should return true or false

Example

pivot.addFilter("form", { 
    handler: function (name) { return name === "Republic" }
});

Change log

deprecated starting from version 1.2

Back to top