41

alert - tornadofx

 4 years ago
source link: https://tornadofx.io/dokka/tornadofx/tornadofx/alert.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

alert - tornadofxtornadofx / tornadofx / alert

alert

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK