Edit Lifecycle Events
A full set of events around editing, where the 'before' events can be cancelled. These let apps veto edits, change values before they are saved, or connect editing to analytics and auditing.
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 grid with a live event timeline panel.
Expected behavior
Each edit shows the event sequence in the timeline. Cancelling a before event stops the next step. Values changed in onBeforeCommit are the ones that get stored.
Planned API surface
onBeforeEditStartonEditStartonEditorValueChangingonBeforeCommitonCommitonEditCancelonEditEndevent.preventDefault()event.setValue()Acceptance criteria
- The event order is documented and stays the same: beforeEditStart, editStart, then any valueChanging events, then beforeCommit, commit and editEnd, or editCancel followed by editEnd. (pending)
- preventDefault on beforeEditStart stops the editor from opening. (pending)
- preventDefault on beforeCommit keeps the editor open. (pending)
- Every event payload includes the row, column, old value, new value and the trigger source. (pending)