lvgl.align¶
lvgl.align([parent, ]params)
Display a button showing a text alignment name. Tapping it opens a popup menu to choose an alignment from, using EdgeTX styling.
Parameters¶
| Name | Req | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parent | no | object | optional LVGL object to attach the new object to; if omitted the object is created in the top-level script window | ||||||||||||||||||||||||||||||||||||
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 popup closes and
setis called when the user selects an item. @notice If the user taps outside the popup or presses RTN, the popup closes without callingset.
Source¶
radio/src/lua/api_colorlcd_lvgl.cpp