Skip to content

FloatUpdateTextElement

14.6

Class Documentation

Edit documentation

A float element that writes the displayed value as the text of a text element. The element formats the value with the printf-style TextFormat and replaces the whole text of the element. The formatted text is limited to 256 characters. If the new text equals the current text, the element is not changed.

To put a number inside a localized text instead, use a LogicDriverFloatToString text binding of the view.

Properties

LocalizedTextFormat

String = ""
Edit documentation

The key of a localized format string. If it is set, the client looks the key up in the string table when the view starts and uses the result in place of TextFormat.

TextElement

Hash = "0x0"
Edit documentation

The hash of the text element that shows the value.

TextFormat

String = "%f"
Edit documentation

A printf-style format that receives the displayed value as a floating-point number, such as %03.0f. If LocalizedTextFormat is set, the localized format replaces it when the view starts.