Skip to content

lvgl.textEdit

Syntax

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

parent:textEdit({settings})

Parameters

See the API page for parameter description and common settings.

Text edit specific settings:

NameTypeDescriptionDefault if not set
valueString or FunctionSets the text that the user can edit.
If a function is used then the text can be changed by both the Lua script and the user.
Empty string
lengthNumberSets the maximum length of the text that can be edited.
Must be a number between 1 and 128.
32
setFunctionCalled when the user edits the text.
The function has a single parameter which is a string with the edited content.
nil
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 and widgets running in full screen mode.

Change log

EdgeTX versionChange
2.11.0Introduced