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