Row Delete
Deletes one or more rows with optional confirmation, soft-delete marking and undo. Deleting by mistake is costly, so the safeguards can be configured.
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 contacts grid with row selection and a delete action column.
Expected behavior
With soft delete, rows show a strikethrough style and become read-only until the changes are saved. Undo restores them. Immediate delete removes the rows, and Undo is available until the timeout ends.
Planned API surface
deleteRows(rowIds)deleteKeyconfirmDelete(fn)softDeleteundoDelete()onBeforeRowsDeleteonRowsDeletedAcceptance criteria
- onBeforeRowsDelete can be cancelled. (pending)
- Soft-deleted rows appear in getChanges with the type 'delete'. (pending)
- Undo restores the rows at their original positions. (pending)
- Deleting a new row that has not been saved removes it with no delete record. (pending)