GaugeObject.rerender

Syntax

render (speedometer: PP.Ui.Gauge, parent: PP.Ui.GaugeObject);

Parameters

speedometer. Speedometer object.

parent. Parent object.

Description

The rerender method removes the object and redraws it.

Example

To execute the example, the page must contain the Speedometer component with the speedometer identifier (see Example of Creating a Speedometer with a Wizard).

Get central marker of the speedometer, set up transparency and redraw it:

// Get speedometer central marker
center = speedometer.getCenter();
// Set up transparency
center.setOpacity(0.3);
center.setOpacityEnabled(true);
// Redraw the marker
center.rerender(speedometer,this);

After executing the example the transparency settings will be applied for the speedometer central marker.

See also:

GaugeObject