Skip to content

lvgl.label

Syntax

lvgl.label([parent], {settings})

parent:label({settings})

Parameters

See the API page for parameter description and common settings.

Label specific settings:

NameTypeDescriptionDefault if not set
textString or FunctionSet the text to be displayed on the labelEmpty string
fontFont value or FunctionSets the font size.
E.G.:
- MIDSIZE
- DBLSIZE
STDSIZE
alignText alignment value or function

Sets the justification for the text.
E.G.:
- RIGHT
- VCENTER

Notes:

RIGHT and CENTER alignment require the width for the label to be set.
LEFT, RIGHT and CENTER will align the text horizontally within the label bounding box (x,y,w,h).
VCENTER, VTOP and VBOTTOM will align the label bounding box vertically within the parent object.

LEFT

Return values

LVGL object

API Status

AvailStatusComment
BW radiosfalse
Color radiostrueactive

Change log

EdgeTX versionChange
2.11.0Introduced