diff options
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt b/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt index d4addf24..8e434d73 100644 --- a/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt +++ b/src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt @@ -61,7 +61,7 @@ open class Modal( ) : SimplePanel(classes) { /** - * Window content text. + * Window caption text. */ var caption get() = captionTag.text @@ -154,6 +154,20 @@ open class Modal( return this } + override fun remove(child: Component): SimplePanel { + body.remove(child) + return this + } + + override fun removeAll(): SimplePanel { + body.removeAll() + return this + } + + override fun getChildren(): List<Component> { + return body.getChildren() + } + /** * Adds given button to the bottom section of dialog window. * @param button a [Button] component |