mars

Dialog

 

Dialog

Dialog is a popup that is often used to confirm user's action.

Example

Create and show a dialog with the title and message with OK and Cancel button.

example



Blocks

setTitle

Set the title of the dialog.

set title

TYPEEXPLANATIONREQUIRED
DialogDialog ComponentYes
StringTitle of the dialogYes

setMessage

Set the message of the dialog.

set message

TYPEEXPLANATIONREQUIRED
DialogDialog ComponentYes
StringMessage of the dialogYes

OK Button Clicked

Add an OK button, and determine the action to perform when clicked.

ok button

TYPEEXPLANATIONREQUIRED
DialogDialog ComponentYes
StringText of the OK ButtonYes

Cancel Button Clicked

Add a Cancel button, and determine the action to perform when clicked.

cancel button

TYPEEXPLANATIONREQUIRED
DialogDialog ComponentYes
StringText of the Cancel ButtonYes

Neutral Button Clicked

Add a Neutral button, and determine the action to perform when clicked.

neutral button

TYPEEXPLANATIONREQUIRED
DialogDialog ComponentYes
StringText of the Neutral ButtonYes

Show

Show the created dialog. Note that the dialog will not show without this block.

show

TYPEEXPLANATIONREQUIRED
DialogDialog ComponentYes

Post a Comment

0 Comments