Skip to main content

onCustomValueDelete

Last updated 27/07/2026

Custom value deletion handler

This example demonstrates how the

callback removes an existing custom value from the host application. Once the custom value has been successfully deleted, the result is returned to the widget through the

onResponse
callback.

TypeScript
Custom value deletion handler
onCustomValueDelete: (customValue: DIQ_CustomValue, onResponse: (result: DIQ_Result) => void) => {

// Delete the custom value from the application's database
database.deleteCustomValue(customValue);

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

};