WarUI

Inline Cell Editing Basics

GRID-A14-F01P0baselinePlanned

Lets users edit one cell in place by opening an editor inside the cell, then committing or cancelling the change. This is the base interaction every other editing feature builds on. It should feel the same as editing in a spreadsheet.

Planned. This page shows the specification from issue #193. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A 20-row product grid with Name, SKU and Stock columns. Name and Stock are editable and SKU is not. No cell is being edited.

Expected behavior

Double-click, Enter or F2 on an editable cell opens a text editor with the current value selected. Enter or clicking outside the cell commits the value and logs onCellValueChanged with the old and new values. Escape restores the original value and logs nothing. SKU cells never open an editor.

Planned API surface

columns[].editableeditMode: 'cell'startEditing(rowId, colId)stopEditing(cancel?)isEditing()getEditingCell()onCellValueChanged

Acceptance criteria

  • Double-click on an editable cell opens exactly one editor. (pending)
  • Enter commits the edit and the grid shows the new value. (pending)
  • Escape cancels the edit and the cell shows its original value. (pending)
  • onCellValueChanged fires only when the committed value differs from the original value. (pending)
  • A non-editable column never opens an editor through any trigger. (pending)
  • Focus returns to the grid cell after the edit commits or cancels. (pending)