Editing, validation, and changes
This section follows the data-writing workflow: edit values, validate them, then track, revert, undo, or redo accepted changes.
Cell and row editing
Enable edit-config and add editor to editable columns. Choose controls through the shared renderer registry; this example uses $input, $select, $date, and $switch, with renderer props and options forwarded to each component.
Input-surface editors such as input, textarea, select, cascader, date, and time controls default to shape="square" inside table cells so their outline follows the cell geometry; an explicit renderer or editor props.shape still takes precedence. An active input-surface editor fills the cell’s actual width and height.
Table preserves the row’s pre-edit rendered minimum height for the edit session, so wrapped or multi-line display content does not collapse when it is replaced; compact controls such as Switch remain centered in the same full-cell editor layer. When editing starts, Table makes only the smallest table-owned scroll needed to reveal the cell beyond fixed columns and viewport edges; an already visible cell stays in place.
Double-click starts cell editing by default. Use mode: 'row' for row editing, trigger: 'click' | 'dblclick' | 'manual' for activation, and editableMethod for eligibility. The archived project in this example is read-only.
Editing updates a draft. Without change-config, accept updatedRow or changes from editCommit to update data or persist to a server; the table does not mutate business records. Enter commits a text input and Escape cancels; selects and date panels handle their own keys first. Use the Save button or Ctrl/⌘ + Enter for any editor. Tab to an editable cell, then press Enter or F2 to begin.