onDimensionCustomValueDelete
Dimension custom value deletion handler
This example demonstrates how the onDimensionCustomValueDelete 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.
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 }
);
},