lvgl.page¶
lvgl.page(params)
Create a page layout for a One-Time script using EdgeTX styling: a header with title/sub-title lines and a back button in the top-left corner. Should be created as the top-level LVGL object, with all other objects added as its children.
Parameters¶
| Name | Req | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params | yes | table | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns¶
| Name | Type | Description |
|---|---|---|
- | table | LVGL object, or nil if not running as a One-Time script or fullscreen widget |
Availability¶
- Since:
2.11.0 - Radio support:
color-lcd
Notes¶
- Only available for One-Time scripts and widgets running in full screen mode -- returns nil otherwise. @notice The common object settings (x, y, w, h, color, etc.) are not used by
lvgl.page-- only the settings listed above apply. @notice The page automatically adds scroll bars if child objects fall outside its boundaries. @noticescrollBar,scrollDir,scrolled, andscrollTowere added in 2.11.2. @notice The PAGE keys are not automatically mapped toprevButton/nextButton-- the script'srunfunction must detect and handle them itself.
Source¶
radio/src/lua/api_colorlcd_lvgl.cpp