Filters
The filters feature provides methods and state for filtering table rows based on column values. These properties are available on the table instance when using the column filtering feature. See the column filtering guide for usage examples and configuration details.
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the row model for the table after
column filtering has been applied.Type
() => FilterFn<TData>
Description
Currently, this function returns the built-in
includesString filter function.
In future releases, it may return more dynamic filter functions based on the
nature of the data provided.Type
() => [
number,
number,
]
Description
Returns the faceted min and max values for the global filter.
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the row model for the table after global filtering has been applied.
Type
() => Map<
any,
number
>
Description
Returns the faceted unique values for the global filter.
Type
() => FilterFn<TData>
Description
Returns the filter function (either user-defined or automatic, depending on
configuration) for the global filter.
Type
() => {
flatRows: Row[]
rows: Row[]
rowsById: Record
}
Description
Returns the row model for the table before any
column filtering has been
applied.Type
(
defaultState?: boolean,
) => void
Description
Resets the
columnFilters state to initialState.columnFilters, or true
can be passed to force a default blank state reset to [].Type
(
defaultState?: boolean,
) => void
Description
Resets the
globalFilter state to initialState.globalFilter, or true can
be passed to force a default blank state reset to undefined.Type
(
updater:
| T
| ((old: T) => T),
) => void
Description
Sets or updates the
state.columnFilters state.Type
(
updater: any,
) => void
Description
Sets or updates the
state.globalFilter state.Last updated on by Ryan Bower