Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / EditorRenderContext

Interface: EditorRenderContext<TRow>

What a custom editor is handed. commit/cancel are the SAME handles the built-in editor uses, so a replacement participates in Tab-walking, batch changes and undo rather than living beside them.

Type Parameters

TRow

TRow = GridRowData

Properties

cancel

cancel: () => void

Returns

void


columnId

columnId: string


commit

commit: () => void

Returns

void


error

error: string | null

Validation message for value, or null.


row

row: TRow

The row with pending edits applied — what a cascading list should read.


setValue

setValue: (value) => void

Parameters

value

unknown

Returns

void


value

value: unknown

Current (uncommitted) editor value.