A column-level property that controls editability of cells.
true
to enable editing for all rows.boolean | EditableFn
boolean
EditableFn
(docs)A predicate function that determines whether a particular cell is editable.
If cell editing is enabled in LyteNyte Grid, this function is evaluated per cell. Use
true
for globally editable columns or EditableFn for row-specific logic.
params | EditableFnParams (docs) |
boolean
Parameters passed to EditableFn , the predicate function used to determine if a specific cell in the grid is editable.
These include the row index, the row node object, the grid instance, and the column definition.
A reference to a column definition in LyteNyte Grid.
Type | Column |
A reference to the LyteNyte Grid instance.
Type | Grid |
The row node instance in LyteNyte Grid.
Type | RowNode |
The zero-based index of the row.
number
Describes the currently active cell position if editing is in progress.
When no edit is active, this will be undefined
.
A reference to a column definition in LyteNyte Grid.
Type | Column |
The zero-based index of the row.
number
Parameters accepted by the editBegin
method to start editing a specific cell.
A flexible reference to a column, which can be a column object, its id (string), or its index (number).
string | number | Column
string
number
Column
(docs)Optional override value to use as the initial edit value. Defaults to the cell's current value.
any
The zero-based index of the row.
number
Controls whether a grid operates in inline editing mode:
"cell"
: Editing is active and inline"readonly"
: Editing is disabled entirely"cell" | "readonly"
"cell"
"readonly"
Specifies what kind of mouse interaction should initiate editing:
"single"
: Single click"double-click"
: Double click"none"
: Editing must be started via API or programmatically"single" | "double-click" | "none"
"single"
"double-click"
"none"
Defines the edit renderer for a column.
Can be either:
string | EditRendererFn
string
EditRendererFn
(docs)A function that returns a React component to be rendered in edit mode for a given cell.
Used for customizing editing UI. If omitted, a default HTML input will be used.
params | EditRendererFnParams (docs) |
ReactNode
Input parameters for the EditRendererFn , used to render the edit UI for a cell.
These include positional and contextual data such as row, column, value, and grid instance, along with row validation status and change handlers.
A reference to a column definition in LyteNyte Grid.
Type | Column |
A reference to the LyteNyte Grid instance.
Type | Grid |
A callback that must be called with the new value when the user changes the input.
This triggers internal grid state updates and row validation.
c | any |
void
The row node instance in LyteNyte Grid.
Type | RowNode |
The zero-based index of the row.
number
Tracks the row's current validation status while editing.
false
: validation failedtrue
or null
: validation passed or hasn't runRecord<string, any>
: failed with details per columnnull | boolean | Record
null
boolean
Record
The value currently being edited in the active cell.
Managed internally by the grid, but should be aligned with the expected shape of your application's data model.
any
A function that validates a fully edited row.
Supports synchronous or object-based results for per-column validation. Must return:
true
or null
if the row is validfalse
or a Record<string, any>
describing errors if invalidparams | EditRowValidatorFnParams (docs) |
Record | boolean
Input arguments passed to EditRowValidatorFn .
Used to perform validation on the entire row during or after edit submission.
The row data to validate.
any
A reference to the LyteNyte Grid instance.
Type | Grid |
The row node instance in LyteNyte Grid.
Type | RowNode |
The zero-based index of the row.
number
A function that returns a new row object based on the edited cell value.
Required when dealing with nested, computed, or non-primitive values that the grid cannot update automatically.
params | EditSetterParams (docs) |
any
Input parameters passed to an EditSetterFn .
Provides the context needed to compute and apply new row data based on edit input.
A reference to a column definition in LyteNyte Grid.
Type | Column |
The new row data after applying edits. This is an intermediate representation, not yet committed to the grid.
any
A reference to the LyteNyte Grid instance.
Type | Grid |
The row node instance in LyteNyte Grid.
Type | RowNode |
The zero-based index of the row.
number
The current edit value of the cell being edited. Useful when the cell is derived from data and not actually present in the row data.
any
Parameters passed to the editUpdate
method, used to submit a value change.
A flexible reference to a column, which can be a column object, its id (string), or its index (number).
string | number | Column
string
number
Column
(docs)The zero-based index of the row.
number
The value to apply to the cell. It will go through normal validation and update handling.
any