Skip to main content

onDimensionCustomValueDelete

Last updated 28/07/2026

Dimension custom value deletion handler

This example demonstrates how the

callback removes a dimension custom value from the host application's persistent storage. Once the custom value has been successfully deleted, the result is returned to the widget through the

onResponse
callback.

TypeScript
Dimension custom value deletion handler
onDimensionCustomValueDelete: (dimensionCustomValue: DIQ_DimensionCustomValue, onResponse: (result: DIQ_Result) => void) => {

// Delete the dimension custom value
database.deleteDimensionCustomValue(dimensionCustomValue.key);

// Return the result to the widget
onResponse(
{ success: true }
);

},