addFilter

adds a new filter for the data

void addFilter(string id,function handler);

Deprecated

use instead:

Parameters

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