ControlChanged: function (sender, args);
sender. Event source.
args. Event information.
The ControlChanged event is fired after changing settings of the calculator wizard settings in the Parameters panel.
To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Process the ControlChanged, FormulaEditBlur and FormulaEditFocus events:
// Get workbook properties panel var propertyBar = workbookBox.getPropertyBarView(); // Get parameters panel var parametersPanel = propertyBar.getParametersPanel(); // Display and expand this panel parametersPanel.show(); parametersPanel.expand(); // Get calculator wizard var calculatorWizard = parametersPanel._CalculatorWizard; // Display calculator calculatorWizard.show(); // Process the ControlChanged event calculatorWizard.ControlChanged = PP.Delegate(function (sender, args) { console.log("Calculator wizard settings are changed."); }, this); // Process the FormulaEditFocus event calculatorWizard.FormulaEditFocus.add(function (sender, args) { console.log("Expression edit box is focused."); }); // Process the FormulaEditBlur event calculatorWizard.FormulaEditBlur.add(function (sender, args) { console.log("Expression edit box is unfocused."); }); // Process the RequestMetadata event calculatorWizard.RequestMetadata.add(function (sender, args) { console.log("Metadata is requested."); }); // Fire the ControlChanged, FormulaEditFocus, FormulaEditBlur and RequestMetadata events calculatorWizard.ControlChanged.fire(this); calculatorWizard.FormulaEditFocus.fire(this); calculatorWizard.FormulaEditBlur.fire(this); calculatorWizard.RequestMetadata.fire(this);
After executing the example the browser console displays appropriate notifications after the following events are fired: ControlChanged - calculator wizard settings change, FormulaEditBlur - the expression edit box is unfocused, FormulaEditFocus - the expression edit box is focused, metadata is requested:
Calculator wizard settings are changed.
The expression edit box is focused.
The expression edit box is unfocused.
Metadata is requested.
See also: