Back to Table

TableOptions_RowSelection

docs/reference/interfaces/TableOptions_RowSelection.md

8.21.32.4 KB
Original Source

Interface: TableOptions_RowSelection<TFeatures, TData>

Defined in: features/row-selection/rowSelectionFeature.types.ts:12

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

enableMultiRowSelection?

ts
optional enableMultiRowSelection: boolean | (row) => boolean;

Defined in: features/row-selection/rowSelectionFeature.types.ts:20

  • Enables/disables multiple row selection for all rows in the table OR
  • A function that given a row, returns whether to enable/disable multiple row selection for that row's children/grandchildren

enableRowSelection?

ts
optional enableRowSelection: boolean | (row) => boolean;

Defined in: features/row-selection/rowSelectionFeature.types.ts:25

  • Enables/disables row selection for all rows in the table OR
  • A function that given a row, returns whether to enable/disable row selection for that row

enableSubRowSelection?

ts
optional enableSubRowSelection: boolean | (row) => boolean;

Defined in: features/row-selection/rowSelectionFeature.types.ts:30

Enables/disables automatic sub-row selection when a parent row is selected, or a function that enables/disables automatic sub-row selection for each row. (Use in combination with expanding or grouping features)


onRowSelectionChange?

ts
optional onRowSelectionChange: OnChangeFn<RowSelectionState>;

Defined in: features/row-selection/rowSelectionFeature.types.ts:34

If provided, this function will be called with an updaterFn when state.rowSelection changes. This overrides the default internal state management, so you will need to persist the state change either fully or partially outside of the table.