inline fun alert(type: AlertType, header: String, content: String? = null, vararg buttons: ButtonType, owner: Window? = null, title: String? = null, actionFn: Alert.(ButtonType) -> Unit = {}): Alert
Show an alert dialog of the given type with the given header and content. You can override the default buttons for the alert type and supply an optional function that will run when a button is clicked. The function runs in the scope of the alert dialog and is passed the button that was clicked.
You can optionally pass an owner window parameter.