Skip to content

lvgl.verticalSlider

Syntax

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

parent:verticalSlider({settings})

Parameters

See the API page for parameter description and common settings.

The size of the slider is set with the 'h' property. The 'w' property is not used.

Slider specific settings:

NameTypeDescriptionDefault if not set
minNumberMinimum value for the slider range (left end).0
maxNumberMaximum value for the slider range (right end).100
getFunctionCalled to get the currrent value for the slider knob.
Should rethrn a value between min and max (inclusive).
nil
setFunctionCalled when the user interacts with the slider and changes the knob position.
The function is passed a single number parameter with the new value.
activeFunctionSet the enabled / disabled state. Return value must be a boolean - true to enable the control, false to disable.nil

Return values

LVGL object

API Status

AvailStatusComment
BW radiosfalse
Color radiostrueactiveOnly available for One-Time scripts

Change log

EdgeTX versionChange
2.11.0Introduced