Configurable Edit Triggers
Controls which user actions start an edit: typing a character, Enter, F2, double-click or a single click. Different apps need different triggers. Data-entry apps want single click or type-to-edit, while review apps want only an explicit F2 or double-click.
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
An editable grid with all triggers enabled except singleClick.
Expected behavior
Only the checked triggers open an editor. With typing enabled, pressing a printable key on a focused cell opens the editor seeded with that character. The toggle decides whether the character replaces the value or is appended to it. F2 opens the editor with the caret at the end. Enter opens the editor with all text selected.
Planned API surface
editTriggers: ('typing'|'enter'|'f2'|'doubleClick'|'singleClick')[]columns[].editTriggerstypingReplacesValueonBeforeEditStartAcceptance criteria
- Disabling a trigger stops that action from opening an editor. (pending)
- Type-to-edit seeds the editor with the typed character, including IME composition results. (pending)
- F2 puts the caret at the end of the existing value. (pending)
- Single-click on a cell that is not focused starts editing only when singleClick is enabled. (pending)
- A column-level editTriggers setting overrides the grid-level setting. (pending)