lvgl.box
Create a container for managing object layout.
Syntax
lvgl.box([parent], {settings})
parent:box({settings})
Parameters
See the API page for parameter description and common settings.
Box specific settings:
Name
Type
Description
Default if not set
flexFlow
Flow type - lvgl.FLOW_COLUMN or lvgl.FLOW_ROW
Enable flex layout for this box.
not used
flexPad
Number
When flex layout is used, set the padding between rows or columns. Recommended to use the lvgl.PAD_xxx values.
0
Notes
The box object is a helper for managing screen layouts.
When adding controls such as button, toggle, textEdit etc, be sure to leave enough space for the focus outline around the control.
Return values
LVGL object
API Status
Avail
Status
Comment
BW radios
Color radios
active
Return values
LVGL object
Change log
EdgeTX version
Change
2.11.0
Introduced
Last updated
Was this helpful?