errorAlert
fun errorAlert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(CLOSE), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>
Show an error 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 errorAlert(content: String, vararg buttonTypes: ButtonType = arrayOf(CLOSE), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>
Show an error alert.
Return
selected alert button.
Parameters
content
alert message.
buttonTypes
alert buttons.
alertAction
custom dialog action.