Interface RowStateOptions<Data>

Type interface for RowState options.

Type Parameters

Hierarchy

Properties

autoResetRowState?: boolean

Reset row-state when data changes.

Default

true

disableRowState?: boolean

Disable row-state management table.

Default

false

getResetRowStateDeps?: ((instance: TableInstance<Data>) => any[])

Type declaration

initialCellStateAccessor?: ((cell: Cell<Data, any>) => UseRowStateLocalState<Data, unknown>)

Type declaration

initialRowStateAccessor?: ((row: Row<Data>) => UseRowStateLocalState<Data, unknown>)

Type declaration

initialState?: Partial<UseRowStateState<Data>>

Initial settings of row-select.

Example

{ rowState: { [rowId]: { cellState: { [columnId]: {} } } } }
onStateChange?: StateChangeHandler<UseRowStateState<Data>>

Callback executed when rows are selected or deselected. The function must be wrapped in useCallback hook.

Generated using TypeDoc