GaugeScale.MaskLabel

Syntax

MaskLabel: String;

Description

The MaskLabel property sets format for displaying a value in a label.

Comments

This property is relevant for the values if they did not have an assigned label defined by the Labels property.

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 a label with a mask-defined format:

<input TYPE="button" VALUE="MaskLabel" ONCLICK="TestMaskLabel()">
<script>
function TestMaskLabel()
{
	speed1.getScales(1).setMaskLabel("t{0}");
	speed1.getScales(1).getValues().push(35);
	speed1.getScales(1).render(speed1, this);
} 
</script>

 Clicking the MaskLabel button adds a label that looks as follows:

See also:

GaugeScale