lvgl.source
Display a button showing a source name. When tapped the switch select popup is opened to allow the user to select a new source. Uses EdgeTX styling.
Display a button showing a source name. When tapped the switch select popup is opened to allow the user to select a new source. Uses EdgeTX styling.
lvgl.source([parent], {settings})
parent:source({settings})
See the API page for parameter description and common settings.
Source specific settings:
Name | Type | Description | Default if not set |
---|
LVGL object
The popup menu is closed when the user selects an item, and the 'set' function is called.
If the user taps outside the menu or the RTN key is pressed, the popup menu is closed and the 'set' function is not called.
Avail | Status | Comment |
---|
EdgeTX version | Change |
---|
get | Function | Called to get the currently selected source, when the popup menu is first opened. | nil |
set | Function | Called when the user taps on an source button. The function is passed a single parameter wihich is the selected source value. | nil |
BW radios |
Color radios | active | Only available for One-Time script |
2.11.0 | Introduced |