$prompt

Shows a prompt window that the user can input text into. See Examples for how to use it.

$prompt(text, placeholder, callback)

Parameter Type Description
text String or WinObject The question shown in the prompt. Can also be a WinObject with a msg (and icon) property, to set more specific options.
placeholder String The text pre-entered in the input box. This is required, use an empty string if not needed.
callback Function The callback. Called with two arguments, whether the user has pressed OK and the text they entered.