Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / EditorRenderContext

Interface: EditorRenderContext<TRow>

Defined in: datagrid-react/src/types.ts:41

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

Defined in: datagrid-react/src/types.ts:51

Returns

void


columnId

columnId: string

Defined in: datagrid-react/src/types.ts:46


commit

commit: () => void

Defined in: datagrid-react/src/types.ts:50

Returns

void


error

error: string | null

Defined in: datagrid-react/src/types.ts:48

Validation message for value, or null.


row

row: TRow

Defined in: datagrid-react/src/types.ts:45

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


setValue

setValue: (value) => void

Defined in: datagrid-react/src/types.ts:49

Parameters

value

unknown

Returns

void


value

value: unknown

Defined in: datagrid-react/src/types.ts:43

Current (uncommitted) editor value.