User interaction - informational messages, error messages, questions and other dialogs.
Methods
info(title, text)
Show information message
Parameters:
title | String | Title |
text | String | Message |
warning(title, text)
Show warning message
Parameters:
title | String | Title |
text | String | Message |
error(title, text)
Show error message
Parameters:
title | String | Title |
text | String | Message |
question(title, text, buttons) → {ButtonCode}
Ask a question
Parameters:
title | String | Title |
text | String | Message |
buttons | Array.<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:
url | String | URL |