Skip to content

lvgl.dialog

lvgl.dialog(params)

Display a dialog box.

Parameters

NameReqTypeDescription
paramsyestable
FieldTypeDescription
titlestringtext displayed in the dialog's header, defaults to an empty string
closefunctioncalled when the dialog is closed, defaults to nil
flexFlowlvgl.FLOW_COLUMN or lvgl.FLOW_ROWenables flex layout for this box, not used by default
flexPadnumberpadding between rows/columns when flex layout is used, defaults to PAD_OUTLINE

Returns

Name Type Description
- table LVGL object, or nil if not running as a One-Time script or fullscreen widget

Availability

  • Since: 2.11.0
  • Radio support: color-lcd

Notes

  • Only available for One-Time scripts and widgets running in full screen mode -- returns nil otherwise. @notice The common object settings (x, y, w, h, color, etc.) are not used by lvgl.dialog -- only the settings listed above apply.

Source

radio/src/lua/api_colorlcd_lvgl.cpp