Interface: EditorContext\<TRow\>
Defined in: src/model/types.ts:327
Context passed to a custom editor component.
Type Parameters
TRow
TRow
Properties
column
column:
ColumnDef<TRow>
Defined in: src/model/types.ts:333
The column definition.
onChange
onChange: (
newValue) =>void
Defined in: src/model/types.ts:337
Call to update the pending value.
Parameters
newValue
unknown
Returns
void
onCommit
onCommit: () =>
void
Defined in: src/model/types.ts:339
Call to commit the edit.
Returns
void
onDiscard
onDiscard: () =>
void
Defined in: src/model/types.ts:341
Call to discard the edit.
Returns
void
row
row:
TRow
Defined in: src/model/types.ts:331
The row data.
rowId
rowId:
string
Defined in: src/model/types.ts:335
The row’s unique id.
validation
validation:
ValidationState
Defined in: src/model/types.ts:343
Current validation state.
value
value:
unknown
Defined in: src/model/types.ts:329
The current cell value.