onVariableNew
Definition
onVariableNew is a host callback invoked
by DimensionIQWidget when a new variable has been created within the widget and the
host application must persist the new variable.
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 variable's creation state.
Function Signature
Function Signature
Function Signature
onVariableNew: (
variable: DIQ_Variable,
onResponse: (result: DIQ_Result) => void
) => void;
Callback Parameters
variable
Type: DIQ_Variable
Description: The newly created DIQ_Variable 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
onVariableNew