onCustomValueDelete
Custom value deletion handler
This example demonstrates how the onCustomValueDelete 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.
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
});
};