Skip to main content

onConstantDelete

Last updated 23/07/2026

Constant deletion handler

This example demonstrates how the

callback removes an existing constant from the host application's persistent storage. Once the constant has been successfully deleted, the result is returned to the widget through the

onResponse
callback.

TypeScript
Constant deletion handler
onConstantDelete: (constant: DIQ_Constant, onResponse: (result: DIQ_Result) => void) => {

// Delete the constant from the application's database
database.deleteConstant(constant.key);

// Notify the widget that the operation completed successfully
onResponse({
success: true
});

};