diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-02-26 12:48:35 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-02-26 12:48:35 +0100 |
commit | 0cb239ac0d48005b66a6a407ee2b44cc1c9d058a (patch) | |
tree | b7f0cf25a7082f1cb25ba27e64c0ec72c7dcbbe9 /src/main/kotlin/pl/treksoft | |
parent | 9e538396cf0f8b7f559b5d7ab6405ead423e313b (diff) | |
download | kvision-0cb239ac0d48005b66a6a407ee2b44cc1c9d058a.tar.gz kvision-0cb239ac0d48005b66a6a407ee2b44cc1c9d058a.tar.bz2 kvision-0cb239ac0d48005b66a6a407ee2b44cc1c9d058a.zip |
Add missing methods of a container to Modal component.
Diffstat (limited to 'src/main/kotlin/pl/treksoft')
-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 |