本页还没有译文
本页 33 段还没译成简体中文,下面显示的是英文原文。TableOptions_GlobalFiltering
还没翻译译自英文(tanstack.com)本页 33 段都还没译
Defined in: features/global-filtering/globalFilteringFeature.types.ts:35
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Properties
enableGlobalFilter?
optional enableGlobalFilter?: boolean;Defined in: features/global-filtering/globalFilteringFeature.types.ts:42
Enables global filtering across columns that allow it.
getColumnCanGlobalFilter?
optional getColumnCanGlobalFilter?: <TFeatures, TData, TValue>(column) => boolean;Defined in: features/global-filtering/globalFilteringFeature.types.ts:47
If provided, this function will be called with the column and should return true or false to indicate whether this column should be used for global filtering.
This is useful if the column can contain data that is not string or number (i.e. undefined).
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
TValue
TValue extends unknown = unknown
Parameters
column
Column<TFeatures, TData, TValue>
Returns
boolean
globalFilterFn?
optional globalFilterFn?: FilterFnOption<TFeatures, TData>;Defined in: features/global-filtering/globalFilteringFeature.types.ts:60
The filter function to use for global filtering.
- A
stringreferencing a built-in filter function - A
stringthat references a custom filter functions provided via thetableOptions.filterFnsoption - A custom filter function
onGlobalFilterChange?
optional onGlobalFilterChange?: OnChangeFn<any>;Defined in: features/global-filtering/globalFilteringFeature.types.ts:66
Called with an updater when global filter state changes. Pair this with
state.globalFilter when using external state; external atoms can own the
slice without this callback.