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