Skip to content

Text String Widget

The Text String Widget renders plain text strings with configurable font size, alignment, wrap behavior, and background color.

{
"id": "header_label",
"type": "text",
"x": 10,
"y": 10,
"w": 180,
"h": 30,
"value": "Hello Infrafon",
"formatter": {
"type": "string",
"fontSize": 16,
"fontColor": "WHITE",
"backgroundColor": "TRANSPARENT",
"align": "center",
"wrap": true,
},
}
Attribute Type Default Description
type "string" Required Formatter discriminator.
fontSize number 14 Font size in points.
fontColor string "WHITE" Text color name.
align string "left" Alignment ("left", "center", "right").
wrap boolean false Enable multi-line word wrap.