lvgl.numberEdit
Add a number edit box using the EdgeTX style.
Syntax
lvgl.numberEdit([parent], {settings})
parent:numberEdit({settings})
Parameters
See the API page for parameter description and common settings.
Number edit specific settings:
get
Function
Called to get the current value to display.
nil
set
Function
Called when the user interacts with the control. The function is passed the new value.
nil
active
Function
Set the enabled / disabled state. Return value must be a boolean - true to enable the control, false to disable.
nil
min
Number
Sets the minimum allowed value.
-1024
max
Number
Sets the maximum allowed value.
1024
display
Function
Can 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
BW radios
Color radios
Only available for One-Time scripts and widgets running in full screen mode.
Change log
2.11.0
Introduced
Last updated
Was this helpful?