show

fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, backdrop: ModalBackdrop? = null, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit? = null, yesCallback: () -> Unit? = null)(source)

Helper function for opening Confirm window.

Parameters

caption

window title

text

window content text.

rich

determines if text can contain HTML code

align

text align

size

modal window size

animation

determines if animations are used

centered

determines if modal dialog is vertically centered

backdrop

the backdrop behavior, if TRUE then the backdrop is included and modal can be closed by clicking on it, if FALSE then no backdrop is added, if STATIC then the backdrop is included but modal cannot be closed by clicking on it

cancelVisible

determines if Cancel button is visible

yesTitle

"Yes" button text

noTitle

"No" button text

cancelTitle

"Cancel" button text

noCallback

a function called after closing window with No button

yesCallback

a function called after closing window with Yes button