alert
fun alert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(CLOSE), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>
Show an alert with title and graphic.
Return
selected alert button.
Parameters
title
title of the dialog.
graphic
node to be displayed in header.
content
alert message.
buttonTypes
alert buttons.
alertAction
custom dialog action.
inline fun alert(content: String, vararg buttonTypes: ButtonType = arrayOf(CLOSE), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>
Show an alert.
Return
selected alert button.
Parameters
content
alert message.
buttonTypes
alert buttons.
alertAction
custom dialog action.