tornadofx / tornadofx / confirm

confirm

inline fun confirm(header: String, content: String = "", confirmButton: ButtonType = ButtonType.OK, cancelButton: ButtonType = ButtonType.CANCEL, owner: Window? = null, title: String? = null, actionFn: () -> Unit): Unit

Show a confirmation dialog and execute the given action if confirmButton is clicked. The button types of the confirmButton and cancelButton are configurable.