fun showPrompt(message: String, title: String? = null, defaultValue: String? = null, placeholder: String? = null, inputType: String? = null, buttonLabels: List<String>? = null, primaryButtonIndex: Int? = null, autofocus: Boolean = true, submitOnEnter: Boolean = true, cancelable: Boolean = false, animation: Boolean = true, id: String? = null, className: String? = null, modifier: String? = null, maskColor: String? = null, callback: (() -> Unit)? = null): Promise<String?>
Displays prompt notification.
message
- a notification message
defaultValue
- a default value for the input
placeholder
- a placeholder for the input
buttonLabels
- labels of the buttons
primaryButtonIndex
- an index of the default button
autofocus
- whether the input element is focused
submitOnEnter
- close automatically when the ENTER key is pressed
cancelable
- whether the notification can be cancelled
animation
- whether the notification is animated
id
- the id of the notification HTML element
className
- the CSS class of the notification HTML element
modifier
- a modifier attribute to specify custom styles
maskColor
- a color of the background mask
callback
- a callback function called after the dialog has been closed