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