TooltipFormat

Definition of the formatting of the tooltips.

Schema: tchmi:framework#/definitions/Function

Called when the tooltip is displayed.

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 ]

TooltipFormat(valueX: number, valueY: number): string;

Parameter

Name

Type

Description

valueX

number

The numerical value for the x-coordinate.

valueY

number

The numerical value for the y-coordinate.

Return value

Type

Description

string

The tooltip to be displayed. HTML is allowed here.

Attribute getter

public getTooltipFormat(): TcHmi.IFunction;

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

TcHmi.IFunction

The current value of the attribute.

Attribute setter

public setTooltipFormat(valueNew: TcHmi.IFunction | null): void;

Parameter

Name

Type

Description

valueNew

TcHmi.IFunction, null

The new value of the attribute. If null is passed, the internal default value is used.

Return value

Type

Description

void

No return value.

TooltipFormat 1:

Available from version 1.10