Skip to main content

onConstantUpdate

Last updated 23/07/2026

Definition

is a host callback invoked by
DimensionIQWidget
when an existing constant has been modified within the widget and the host application must persist the updated constant.

Once processing is complete, please refer to the

onResponse
contract in the Widget Callback Introduction.

This callback ensures the widget and the host application remain synchronized regarding the constant's updated state.

Function Signature

TypeScript
Function Signature
onConstantUpdate: (
constant: DIQ_Constant,
onResponse: (result: DIQ_Result) => void
) => void;

Callback Parameters

constant
Type: DIQ_Constant
Description: The updated

object from the widget.

onResponse
Type: (result: DIQ_Result) => void
Description: Callback function that must be called by the host to complete the operation.

Examples

onConstantUpdate