LabelFormat

Schema: tchmi:framework#/definitions/Function

The formatting function for the label texts.

It is called for each value in the label.

A function must fulfill the following signature in order to be offered in the engineering. The parameters mentioned here are set by the control. Further parameters are possible and can be specified per instance in the engineering.

[ Function ]

LabelFormat(value: number): string;

Parameter

Name

Type

Description

value

number

The numerical value for the label.

Return value

Type

Description

string

The text to be displayed. HTML is not allowed here.

Origin: Tachometer

See also

Attribute getter: getLabelFormat

Attribute setter: setLabelFormat

LabelFormat 1:

Available from version 1.12.744