GaugeObject.getChildren

Syntax

getChildren ();

Description

The getChildren method returns an array of child GaugeObject elements.

Comments

If this element includes child elements GaugeObject, the function is redefined in the child class.

Example

To execute the example, the page must contain the Speedometer component named speed1 (see Example of Creating a Fuel Gauge Unit). Add to the page a button, clicking which shows names of speedometer child elements' classes:

<input TYPE="button" VALUE=" OK " ONCLICK="AlertButton()">
<script>
function AlertButton()
{
	var s = "";
	var st = speed1.getChildren();
	for(var i = 0; i < st.length; i++)
	{
		s += st[i].getTypeName() + "\n";
	}
	alert(s);
}
</script>

Click the OK button to get an array of GaugeObject children shown as a list:

GaugeScale

GaugeScale

GaugeScale

CircleMarker

See also:

GaugeObject