lvgl.slider
Add a slider using the EdgeTX style.
Syntax
lvgl.slider([parent], {settings})
parent:slider({settings})
Parameters
See the API page for parameter description and common settings.
Slider specific settings:
Name | Type | Description | Default if not set |
---|---|---|---|
min | Number | Minimum value for the slider range (left end). | 0 |
max | Number | Maximum value for the slider range (right end). | 100 |
get | Function | Called to get the currrent value for the slider knob. Should rethrn a value between min and max (inclusive). | nil |
set | Function | Called when the user interacts with the slider and changes the knob position. The function is passed a single number parameter with the new value. |
Return values
LVGL 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 |