alert

fun alert(parentStage: Stage, title: String, heading: String = title, message: String, alertType: AlertType = AlertType.NONE, buttonTypes: List<ButtonType>, callback: (ButtonType?) -> Unit)

Builds, and shows an AlertDialog.

Parameters

callback

Called when a button is pressed.


fun alert(parentStage: Stage, title: String, heading: String = title, message: String, alertType: AlertType = AlertType.NONE, buttonTypes: List<ButtonType>, messageRowCount: Int = 0, messageColumnCount: Int = 0, callback: (ButtonType?) -> Unit)