onConstantUpdate
Constant update handler
This example demonstrates how the onConstantUpdate callback
persists changes made to an existing constant within the host application. Once the updated constant has been successfully stored, the result is returned to the widget through
the
onResponse
callback.
Constant update handler
onConstantUpdate: (constant: DIQ_Constant, onResponse: (result: DIQ_Result) => void) => {
// Update the constant in the application's database
database.updateConstant(constant);
// Notify the widget that the operation completed successfully
onResponse({
success: true
});
};