@kanunilabs/datagrid / CellEditingOptions
Interface: CellEditingOptions<TRow>
The Community editing option of createGrid. Passing the object turns
single-cell editing on; { enabled: false } turns it off again. Columns
with editable: false stay read-only.
Type Parameters
TRow
TRow = GridRowData
Properties
editOnKeyPress?
optionaleditOnKeyPress?:boolean
Typing a printable key on a focused cell starts editing. Default true.
enabled?
optionalenabled?:boolean
Default true once editing is passed.
focusCellOnCycle?
optionalfocusCellOnCycle?:boolean
Tab past the end of a row wraps to the next one. Default true.
focusCellOnTab?
optionalfocusCellOnTab?:boolean
Tab moves between editable cells inside the grid. Default true.
formHeight?
optionalformHeight?:number
Starting height in px for the in-grid form (mode: 'form') before it
has been measured — only worth setting to stop the one-frame resize.
formLabels?
optionalformLabels?:Record<string,string>
Rename the built-in strings for THIS grid (save, cancel,
editSaveChanges…). Merged over the locale's dictionary.
mode?
optionalmode?:EditMode
How edits are collected (Community since 2026-10-16). 'cell' (default)
saves every commit; 'batch' keeps changes pending until the Save strip
above the grid is pressed; 'row' opens the whole row (double-click) with
Save/Cancel, Enter/Escape; 'form' opens a form inside the grid and
'popup' the same form in a dialog. In the buffered modes onSave
receives the changes and must write them to the app's data.
onSave?
optionalonSave?: (changes) =>void|Promise<void>
Persist a committed cell. Called once per commit with the change (the
Enterprise onSave shape). A rejection is shown in a dialog and the user
is put back on the cell.
Parameters
changes
RowChange<TRow>[]
Returns
void | Promise<void>