Skip to content

lvgl.source

Syntax

lvgl.source([parent], {settings})

parent:source({settings})

Parameters

See the API page for parameter description and common settings.

Source specific settings:

NameTypeDescriptionDefault if not set
getFunctionCalled to get the currently selected source, when the popup menu is first opened.nil
setFunctionCalled when the user taps on an source button.
The function is passed a single parameter wihich is the selected source value.
nil
filterNumberControls what source types can be chosen by the user.
The lvgl.SRC_xxx constants can be combined to create a custom filter to control which source the user can select.
lvgl.SRC_ALL

Return values

LVGL object

Notes

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.

API Status

AvailStatusComment
BW radiosfalse
Color radiostrueactiveOnly available for One-Time scripts and widgets running in full screen mode.

Change log

EdgeTX versionChange
2.11.0Introduced