Dialog

open class Dialog<R>(    caption: String? = null,     closeButton: Boolean = true,     size: <ERROR CLASS>? = null,     animation: Boolean = true,     centered: Boolean = false,     scrollable: Boolean = false,     escape: Boolean = true,     className: String? = null,     init: Dialog<R>.() -> Unit? = null)

Modal window with a result.

Parameters

caption

window title

closeButton

determines if Close button is visible

size

modal window size

animation

determines if animations are used

centered

determines if modal dialog is vertically centered

scrollable

determines if modal dialog content is scrollable

escape

determines if dialog can be closed with Esc key

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun <R> Dialog(    caption: String? = null,     closeButton: Boolean = true,     size: <ERROR CLASS>? = null,     animation: Boolean = true,     centered: Boolean = false,     scrollable: Boolean = false,     escape: Boolean = true,     className: String? = null,     init: Dialog<R>.() -> Unit? = null)

Functions

Link copied to clipboard
suspend fun getResult(): R?

A suspending function returning result value.

Link copied to clipboard
open fun hide(): <ERROR CLASS>
Link copied to clipboard
open fun setResult(result: R?)

A function to be called with a result value.