Skip to content

lvgl.confirm

lvgl.confirm(params)

Display a Yes/No confirmation dialog box.

Parameters

NameReqTypeDescription
paramsyestable
FieldTypeDescription
titlestringtext displayed in the dialog's header, defaults to an empty string
messagestringtext displayed in the dialog's body, defaults to an empty string
confirmfunctioncalled when the user taps Yes, defaults to nil
cancelfunctioncalled when the user taps No, defaults to nil

Returns

Name Type Description
none unknown

Availability

  • Since: 2.11.0
  • Radio support: color-lcd

Notes

  • The common object settings (x, y, w, h, color, etc.) are not used by lvgl.confirm -- only the settings listed above apply.

Source

radio/src/lua/api_colorlcd_lvgl.cpp