Appearance
postDelete
The postDelete hook is executed after a row has been deleted. It allows developers to run custom logic once the deletion is complete.
Parameters
| Parameter | Type | Description |
|---|---|---|
| table | reference | Table instance and state. |
| app | reference | Context object app. |
| rowId | object | The primary key of the deleted row. |
Structure parameter table
js
table: {
instance: *ref_to_table_api,
state: *ref_to_table_store,
requery: *ref_to_requery_table_function,
}Return Value
None
✨ Example of a postDelete Hook
This example calls a global function to perform additional tasks after a row has been deleted.
js
((table, app) => {
sendAdminMail(rowId)
})