diff options
author | Robert Jaros <rjaros@finn.pl> | 2017-11-03 15:52:47 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2017-11-03 15:52:47 +0100 |
commit | 398cfa0a80bc10c6580557e9688ba4390b89917b (patch) | |
tree | 1c0f4e9701fec484bfd32e4d730078aa970e45d9 /src/main/kotlin/pl/treksoft/kvision/dropdown | |
parent | 960a82bafa9e9b1a8e07b0eaa20d5eebb72aabc2 (diff) | |
download | kvision-398cfa0a80bc10c6580557e9688ba4390b89917b.tar.gz kvision-398cfa0a80bc10c6580557e9688ba4390b89917b.tar.bz2 kvision-398cfa0a80bc10c6580557e9688ba4390b89917b.zip |
Select form component
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/dropdown')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index eabed092..ade2937b 100644 --- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -97,6 +97,21 @@ open class DropDown(text: String, elements: List<StringPair>? = null, icon: Stri return this } + override fun remove(child: Widget): SimplePanel { + list.remove(child) + return this + } + + override fun removeAll(): SimplePanel { + list.removeAll() + return this + } + + override fun getChildren(): List<Widget> { + return list.getChildren() + } + + private fun setChildrenFromElements() { list.removeAll() elements?.let { elems -> |