From 0cb239ac0d48005b66a6a407ee2b44cc1c9d058a Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 26 Feb 2018 12:48:35 +0100 Subject: Add missing methods of a container to Modal component. --- src/main/kotlin/pl/treksoft/kvision/modal/Modal.kt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/pl/treksoft/kvision/modal') 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 { + return body.getChildren() + } + /** * Adds given button to the bottom section of dialog window. * @param button a [Button] component -- cgit