Skip to content

Messagebox~

obj:msgbox

lv_msgbox

Property Value Default Description
text string "" The text of the message to be displayed.
options json array ["OK"] Json array of strings where each element is the label of a button
modal bool false Make the messagebox a modal dialog requiring user input
auto_close int16 0 Close the pop-up message automatically after this number of milliseconds have passed

The Message boxes act as a pop-up. The default width is the horizontal screen size, the height adjusts according to the contents of the message. The pop-up is centered on the screen.

Note

The messagebox object is automatically deleted when it is closed. You will need to create it again using jsonl to pop-up a new message.

Example jsonl
1
{"page":1,"id":24,"obj":"msgbox","text":"A message box with two buttons","options":["Apply","Close"]}

Last update: 2023-12-10