TableOptions_RowExpanding
Defined in: features/row-expanding/rowExpandingFeature.types.ts:36
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Properties
autoResetExpanded?
optional autoResetExpanded?: boolean;Defined in: features/row-expanding/rowExpandingFeature.types.ts:43
Enables automatic expanded-state resets when page-altering table state changes.
enableExpanding?
optional enableExpanding?: boolean;Defined in: features/row-expanding/rowExpandingFeature.types.ts:47
Allows rows with subRows to be expanded.
getIsRowExpanded?
optional getIsRowExpanded?: (row) => boolean;Defined in: features/row-expanding/rowExpandingFeature.types.ts:51
If provided, allows you to override the default behavior of determining whether a row is currently expanded.
Parameters
row
Row<TFeatures, TData>
Returns
boolean
getRowCanExpand?
optional getRowCanExpand?: (row) => boolean;Defined in: features/row-expanding/rowExpandingFeature.types.ts:55
If provided, allows you to override the default behavior of determining whether a row can be expanded.
Parameters
row
Row<TFeatures, TData>
Returns
boolean
manualExpanding?
optional manualExpanding?: boolean;Defined in: features/row-expanding/rowExpandingFeature.types.ts:59
Enables manual row expansion. If this is set to true, getExpandedRowModel will not be used to expand rows and you would be expected to perform the expansion in your own data model. This is useful if you are doing server-side expansion.
onExpandedChange?
optional onExpandedChange?: OnChangeFn<ExpandedState>;Defined in: features/row-expanding/rowExpandingFeature.types.ts:65
Called with an updater when expanded state changes. Pair this with
state.expanded when using external state; external atoms can own the
slice without this callback.
paginateExpandedRows?
optional paginateExpandedRows?: boolean;Defined in: features/row-expanding/rowExpandingFeature.types.ts:69
If true expanded rows will be paginated along with the rest of the table (which means expanded rows may span multiple pages). If false expanded rows will not be considered for pagination (which means expanded rows will always render on their parent's page). This also means more rows will be rendered than the set page size.