Adaptable

AdaptableRowSelection

Extends AdaptableBaseSelection

Declared in src/modules/view/State.ts

Row selection can be defined in a view, under the view.selection property.

You can either configure multi row (mode = multi-row) or single row (mode = single-row) selection.

#Properties

3 props

#mode'single-row' | 'multi-row'

For row selection, mode must be set to "single-row" or "multi-row".

#persistboolean

Whether the selection is saved with the rest of the state. Defaults to true.

When false, the whole selection object (mode, value, showCheckboxColumn) is left out of the persisted state, so after a reload the view starts from the selection in its initial state. The view's keyboardNavigation is not part of selection and is still persisted.

#valueAdaptableSelectionValueSingleRow | AdaptableSelectionValueMultiRow

An optional initial value for the row selection.

An optional initial value for the single row selection. This will be the primary key of the row to show as selected, or null for no selection.

An optional initial value for the multi row selection.