Skip to main content

onCustomValueUpdate

Last updated 27/07/2026

Custom value update handler

This example demonstrates how the

callback persists changes made to an existing custom value within the host application. Once the updated custom value has been successfully updated, the result is returned to the widget through the

onResponse
callback.

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

// Update the custom value in the application's database
database.updateCustomValue(customValue);

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

};