Skip to content

Home > @liquidrazor/list-display > ActionContextBase

ActionContextBase interface

Signature:

typescript
export interface ActionContextBase<TRow = any, TRowId = string | number>

Properties

Property

Modifiers

Type

Description

exportState

() => ListSnapshot<TRow, TRowId>

Export a full snapshot of the current list state.

filters

ActiveFilterState

pagination

PaginationState

refresh?

() => void | Promise<void>

(Optional) Optional hook to trigger a data source refresh.

rows

TRow[]

All rows managed by the list (after data source + local mutations).

selection

SelectionState<TRowId>

sort?

SortDescriptor<TRow>

(Optional)

updateRows

(updater: (current: TRow[]) => TRow[]) => void

Primary way for actions to mutate the list.

visibleRows

TRow[]

Rows currently visible in the UI (after filters/sort/pagination).