module Plugins::Dialogs

Public Instance Methods


Presents alert dialog with supplied text.

alert('Hello, world')

Presents confirmation dialog with supplied text, Yes, and No buttons.

Returns true on ‘Yes’ and false on ‘No’ response.

if confirm("Are you sure?")
prompt(label="Enter Text:")

Presents input dialogs and prompts for input with optional prompt text.

answer = prompt('Would you like to play a game?')