onConstantDelete
Constant deletion handler
This example demonstrates how the onConstantDelete 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.
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
});
};