confirm

fun confirm(caption: String? = null, content: String? = null, rich: Boolean = false, size: ModalSize? = null, fullscreenMode: FullscreenMode? = null, animation: Boolean = true, centered: Boolean = false, scrollable: Boolean = false, cancelVisible: Boolean = false, yesTitle: String = "Yes", yesIcon: String? = "fas fa-check", noTitle: String = "No", noIcon: String? = "fas fa-ban", cancelTitle: String = "Cancel", cancelIcon: String? = "fas fa-times", noCallback: () -> Unit? = null, yesCallback: () -> Unit? = null)

Shows the confirmation dialog.

Parameters

caption

the caption of the confirmation dialog

content

the content of the confirmation dialog

rich

determines if the window should display rich HTML content

size

the size of the modal window

fullscreenMode

the fullscreen mode of the modal window

animation

determines if the modal window is animated

centered

determines if the modal window is vertically centered

scrollable

determines if the modal window content is scrollable

cancelVisible

determines if the Cancel button is visible

yesTitle

the title of the Yes button

yesIcon

the icon of the Yes button

noTitle

the title of the No button

noIcon

the icon of the No button

cancelTitle

the title of the Cancel button

cancelIcon

the icon of the Cancel button

noCallback

the callback function that is called when the No button is selected

yesCallback

the callback function that is called when the Yes button is selected