lvgl.build¶
lvgl.build([parent, ]params)
Build a complex UI in a single operation from a table of object definitions.
Parameters¶
| Name | Req | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parent | no | object | optional LVGL object to attach the built objects to; if omitted they attach to the top-level script window | ||||||||||||
params | yes | table | a table of tables, each defining one LVGL object: | ||||||||||||
| |||||||||||||||
Returns¶
| Name | Type | Description |
|---|---|---|
- | table | named LVGL objects (only entries whose definition included a name are included) |
Availability¶
- Since:
2.11.0 - Radio support:
color-lcd
Notes¶
- Objects can be nested via
children, another table of tables using the same shape as the top-levelparams. @notice Very large or deeply nested tables may fail to compile to.luac-- if a script works from.luabut fails from.luac, split the call into multiple smallerlvgl.build()calls.
Source¶
radio/src/lua/api_colorlcd_lvgl.cpp