Skip to main content

filter-rows

Description

Fires when filtering data

To trigger the Table event, it's necessary to get access to the Table instance inside Pivot via the getTable method.

Usage

"filter-rows": ({
filter?: any
}) => boolean|void;

Parameters

The callback of the action takes an object with the following parameters:

  • filter - (optional) any filtering function that takes each item from the data array and returns true or false for each item

Example

The snippet below demonstrates how to filter aggregated (visible) data in the table body by input value:

Related article: getTable