lvgl.textEdit
Add a text edit box using the EdgeTX style.
Syntax
lvgl.textEdit([parent], {settings})
parent:textEdit({settings})
Parameters
See the API page for parameter description and common settings.
Text edit specific settings:
value
String
Sets the initial text that the user can edit.
Empty string
length
Number
Sets the maximum length of the text that can be edited. Must be a number between 32 and 128.
32
set
Function
Called when the user interacts with the toggle switch. The function is passed a single number parameter - 0 if the toggle switch is off, 1 if it is on.
nil
active
Function
Set 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
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?