Skip to content
🚀 Rapid Application Development with the App Builder

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 ​

ParameterTypeDescription
tablereferenceTable instance and state.
appreferenceContext object app.
rowIdobjectThe 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,
}

The requery function supports two optional parameters:

js
requery(recalculateRowCount, enableLoadingFeedback)
  • recalculateRowCount: When true, forces a row count recalculation. (default: false)
  • enableLoadingFeedback: When false, disables the spinner and progress bar. (default: true)

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)

})