confirmAlert

fun confirmAlert(title: String? = null, graphic: Node? = null, content: String = "", vararg buttonTypes: ButtonType = arrayOf(YES, NO), alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show a confirmation 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 confirmAlert(content: String, vararg buttonTypes: ButtonType = arrayOf(YES, NO), noinline alertAction: Alert.() -> Unit? = null): Optional<ButtonType>

Show a confirmation alert.

Return

selected alert button.

Parameters

content

alert message.

buttonTypes

alert buttons.

alertAction

custom dialog action.