diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-11-15 09:34:24 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-11-15 09:34:24 +0100 |
commit | 1a5c45c2a6e2e53712d70d731f85a6b990cc464b (patch) | |
tree | 952fab54123667bcd01da5d47f5017e1c0646893 /kvision-modules/kvision-bootstrap-dialog/src/main/kotlin | |
parent | 2d5f5470653ed75d9479bd2e771792478458d36b (diff) | |
download | kvision-1a5c45c2a6e2e53712d70d731f85a6b990cc464b.tar.gz kvision-1a5c45c2a6e2e53712d70d731f85a6b990cc464b.tar.bz2 kvision-1a5c45c2a6e2e53712d70d731f85a6b990cc464b.zip |
Add "centered" property to all Modal dialogs.
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 |