Skip to main content

onCustomValueNew

Last updated 27/07/2026

Custom value creation handler

This example demonstrates how the

callback persists a newly created custom value within the host application. Once the custom value has been successfully stored, the result is returned to the widget through the

onResponse
callback.

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

// Save the custom value to the application's database
database.saveCustomValue(customValue);

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

};