ScalePanel.CurrentScaleChanged

Syntax

CurrentScaleChanged: function | PP.Delegate

Parameters

sender. Event source.

args. Event information.

Description

The CurrentScaleChanged event occurs on changing the current speedometer scale.

Example

To execute the example, the page must contain the GaugeMaster component named master (see Example of Creating a Speedometer with a Wizard). Add a handler for the CurrentScaleChanged event:

scaleP.CurrentScaleChanged.add(function (sender, args) {
   console.log("Current scale index: " + args.ScaleIndex)
});

After executing the example index of the current scale is displayed in the console on scale change.

See also:

ScalePanel