lvgl.button

Add a text button using the EdgeTX style.

Syntax

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

parent:choice({settings})

Parameters

See the API page for parameter description and common settings.

Button specific settings:

NameTypeDescriptionDefault if not set

text

String

Text to be displayed in the button.

Empty string

press

Function

Called when the user taps on the button.

nil

Return values

LVGL object

API Status

AvailStatusComment

BW radios

Color radios

active

Only available for One-Time scripts

Change log

EdgeTX versionChange

2.11.0

Introduced