Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / CardRenderContext

Interface: CardRenderContext<TRow>

What cardView.renderCard draws one card from (P-9).

Type Parameters

TRow

TRow = GridRowData

Properties

fields

fields: CardField[]

The default card's fields, in order (the first is the title): each column's header and the TEXT its closed cell shows — formatter, number format and lookup label included (a function list's label too; empty while that list is still loading).


node

node: DataRowNode<TRow>


row

row: TRow

The row as the user sees it — pending (unsaved) values included.


selected

selected: boolean


status

status: RowSaveStatus | null

The row's save status (rowStatus), or null. The grid draws its marker either way.