editingCell([row], [column], [new_order])
Class: Table.
Description:
Gets or sets the cell currently being edited.
When row and column are provided and are valid, the specified cell enters edit mode.
Pass null as a first argument to stop editing currently edited cell. Do it before reading data from the Table to make sure the cell editor commits it's new value to the Table's data.
When called with no arguments, returns the cell currently being edited, or null if no cell is being edited.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
number |
Row index of the cell to edit, or |
|
|
|
number |
Column index of the cell to edit. |
|
|
|
boolean |
false |
Specified if row and column should be interpreted as new index as displayed (after row sorting and column reordering) or not. |
Returns:
When row and cell is specified, an instance of this Table is returned, otherwise a currently edited cell is retuned of null if no cell is being edited.
Examples:
Stop editing before reading Table data
if(table.editingCell() != null) table.editingCell(null); // stop editing a cell to commit its changes
const _rows = table.rows(); // read new data
