Handler to post-process the paginated data, and determine which data to actually display.
the processed values to set on the datatable.
Filter the provided rows, checking if at least a cell contains one of the specified filters.
The data to apply filter on.
The strings to search in cells.
The columns of the table.
the filtered data rows.
Split the rows list to display the requested page index.
Data outputed from [[Handler.sortHandler]].
The total number of items per page.
The index of the page to display.
the requested page's rows.
Check if the provided row contains the filter string in any column.
The data row to search in.
The string to match in a column.
The list of columns in the table.
true
if any column contains the searched string.
Sort the given rows depending on a specific column & sort order.
Data outputed from [[Handler.filterHandler]].
The column used for sorting.
The direction of the sort.
the sorted rows.
Generated using TypeDoc
This handler is an implementation of IHandler, configured to manipulate an array of rows as input. Handlers are called in this order: filter, sort, paginate, display.
In case you are overriding one of those handlers, make sure that its return value is compatible with subsequent handlers. Otherwise, you'll require to override all of them.
Ajax table (with handler customization)