Skip to content

lvgl.numberEdit

Syntax

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

parent:numberEdit({settings})

Parameters

See the API page for parameter description and common settings.

Number edit specific settings:

NameTypeDescriptionDefault if not set
getFunctionCalled to get the current value to display.nil
setFunctionCalled when the user interacts with the control.
The function is passed the new value.

Note: this function is called for every change in the number value. To only get the final value when the user is finished editing use the 'edited' function.
nil
edited

Added in 2.11.5
FunctionCalled after the user has finished editing the value.
The function is passed the final edited value.
nil
activeFunctionSet the enabled / disabled state. Return value must be a boolean - true to enable the control, false to disable.nil
minNumberSets the minimum allowed value.-1024
maxNumberSets the maximum allowed value.1024
displayFunctionCan be used to override how the value is displayed in the control. The function is passed the current value as a parameter and must return a string to display the value.nil

Return values

LVGL object

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