diff options
Diffstat (limited to 'kvision-modules/kvision-bootstrap-dialog/src/main/kotlin')
-rw-r--r-- | kvision-modules/kvision-bootstrap-dialog/src/main/kotlin/pl/treksoft/kvision/modal/Dialog.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kvision-modules/kvision-bootstrap-dialog/src/main/kotlin/pl/treksoft/kvision/modal/Dialog.kt b/kvision-modules/kvision-bootstrap-dialog/src/main/kotlin/pl/treksoft/kvision/modal/Dialog.kt index e67a6f17..511dfd00 100644 --- a/kvision-modules/kvision-bootstrap-dialog/src/main/kotlin/pl/treksoft/kvision/modal/Dialog.kt +++ b/kvision-modules/kvision-bootstrap-dialog/src/main/kotlin/pl/treksoft/kvision/modal/Dialog.kt @@ -34,14 +34,15 @@ import kotlin.coroutines.resume * @param size modal window size * @param animation determines if animations are used * @param escape determines if dialog can be closed with Esc key + * @param centered determines if modal dialog is vertically centered * @param classes a set of CSS class names * @param init an initializer extension function */ open class Dialog<R>( caption: String? = null, closeButton: Boolean = true, - size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, + size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, escape: Boolean = true, classes: Set<String> = setOf(), init: (Dialog<R>.() -> Unit)? = null -) : Modal(caption, closeButton, size, animation, escape, classes) { +) : Modal(caption, closeButton, size, animation, escape, centered, classes) { internal var resultCallback: ((R?) -> Unit)? = null |