lvgl.page
Create a page layout for a One-Time script using EdgeTX styling. The page layout has a menu bar at the top with title and sub-title lines as well as a 'back' button in the top left corner.
Syntax
lvgl.page({settings})
Parameters
The lvgl.page function uses only the settings shown below. The common settings shown on the API page are not used.
Name | Type | Description | Default |
---|---|---|---|
title | String | Text to be displayed as the title in the header of the page. | Empty string |
subtitle | String | Text to be displayed as the sub-title in the header of the page. | Empty string |
icon | String | Full path to an image file on the SD card to be displayed as the icon in the 'back' button (top left corner). If not set then the EdgeTX logo icon is used. The icon file is a mask image and should be 30x30 pixels in size and be a grey-scale image. White pixels are transparent and black pixels are fully opaque. | Empty string |
back | Function | Called when the user taps the 'back' button in the top left corner. | nil |
flexFlow | Flow type - lvgl.FLOW_COLUMN or lvgl.FLOW_ROW | Enable flex layout for this page. | 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 |
Return values
LVGL object
Notes
The 'page' object should be created as the top level LVGL object in the script window, and all other LVGL objects added as children of the 'page' object.
API Status
Avail | Status | Comment | |
---|---|---|---|
BW radios | |||
Color radios | active | Only available for One-Time scripts |
Change log
EdgeTX version | Change |
---|---|
2.11.0 | Introduced |