api.interactive

User interaction - informational messages, error messages, questions and other dialogs.

Methods

info(title, text)

Show information message

Parameters:
titleString

Title

textString

Message

warning(title, text)

Show warning message

Parameters:
titleString

Title

textString

Message

error(title, text)

Show error message

Parameters:
titleString

Title

textString

Message

question(title, text, buttons) → {ButtonCode}

Ask a question

Parameters:
titleString

Title

textString

Message

buttonsArray.<ButtonCode>

Code of buttons

Returns:
  • selected button
Type: 
ButtonCode
Example
let btn = api.interactive.question("My question", "Yes or No?", [ButtonCode.Yes, ButtonCode.No]);
if (btn === ButtonCode.Yes) {
     ...
}

openUrl(url)

Open URL in external browser

Parameters:
urlString

URL