From 415afec335659ca6bc206b34bdd3c2fe4635718f Mon Sep 17 00:00:00 2001
From: Robert Jaros Useful options for use in DropDown's elements parameter.
+
+
+
+
+
+ Constructor Overrides SimplePanel.addAll Adds a list of components to the current container.
+ Return Overrides SimplePanel.add Adds given component to the current container. Return Overrides Widget.afterInsert Method called after inserting Snabbdom vnode into the DOM. Determines if the dropdown button takes all the space horizontally. Determines if the dropdown is disabled. DSL builder extension function. It takes the same parameters as the constructor of the built component. Determines if the dropdown is showing upwards. Getter Determines if the dropdown is showing upwards.
+
+DISABLED
+
+DISABLED
+Inherited Properties
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.dropdown/-d-d/-h-e-a-d-e-r.html b/api/pl.treksoft.kvision.dropdown/-d-d/-h-e-a-d-e-r.html
new file mode 100644
index 00000000..c0521931
--- /dev/null
+++ b/api/pl.treksoft.kvision.dropdown/-d-d/-h-e-a-d-e-r.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+HEADER
+
+HEADER
+Inherited Properties
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.dropdown/-d-d/-s-e-p-a-r-a-t-o-r.html b/api/pl.treksoft.kvision.dropdown/-d-d/-s-e-p-a-r-a-t-o-r.html
new file mode 100644
index 00000000..d518de3c
--- /dev/null
+++ b/api/pl.treksoft.kvision.dropdown/-d-d/-s-e-p-a-r-a-t-o-r.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+SEPARATOR
+
+SEPARATOR
+Inherited Properties
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.dropdown/-d-d/index.html b/api/pl.treksoft.kvision.dropdown/-d-d/index.html
new file mode 100644
index 00000000..544e8952
--- /dev/null
+++ b/api/pl.treksoft.kvision.dropdown/-d-d/index.html
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+DD
+enum class DD
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Properties
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.dropdown/-d-d/option.html b/api/pl.treksoft.kvision.dropdown/-d-d/option.html
new file mode 100644
index 00000000..518c5aed
--- /dev/null
+++ b/api/pl.treksoft.kvision.dropdown/-d-d/option.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+option
+
+val option: String
+
+
diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html b/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
new file mode 100644
index 00000000..05279737
--- /dev/null
+++ b/api/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+<init>
+
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
+Parameters
+text - the label of the dropdown buttonelements - an optional list of link elements (special options from DD enum class can be used as values)icon - the icon of the dropdown buttonstyle - the style of the dropdown buttondisabled - determines if the component is disabled on startclasses - a set of CSS class names
+
+
+addAll
+
+open fun addAll(children: List<Component>): SimplePanel
+Parameters
+children - list of child components
+current container
+
+add
+
+open fun add(child: Component): SimplePanel
+Parameters
+
+
+current container
+
+afterInsert
+
+protected open fun afterInsert(node: VNode): Unit
+
+
+block
+
+var block: Boolean
+
+
+disabled
+
+var disabled: Boolean
+
+
+dropDown
+
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+
+
+dropup
+
+var dropup: Boolean
+
+
Setter
+
Determines if the dropdown is showing upwards.
+ + + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/get-children.html b/api/pl.treksoft.kvision.dropdown/-drop-down/get-children.html new file mode 100644 index 00000000..749b4086 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/get-children.html @@ -0,0 +1,18 @@ + + + +open fun getChildren(): List<Component>
+Overrides SimplePanel.getChildren
+Returns a list of children of the current container.
+Return
+list of children
protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
var icon: String?
+The icon of the dropdown button.
+ + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/image.html b/api/pl.treksoft.kvision.dropdown/-drop-down/image.html new file mode 100644 index 00000000..56755e67 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/image.html @@ -0,0 +1,15 @@ + + + +var image: ResString?
+The image on the dropdown button.
+ + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/index.html b/api/pl.treksoft.kvision.dropdown/-drop-down/index.html new file mode 100644 index 00000000..f9330ef4 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/index.html @@ -0,0 +1,235 @@ + + + +open class DropDown : SimplePanel
+Bootstrap dropdown component.
+| + + | +
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf()) |
+
| + + | +
+var block: Boolean
+Determines if the dropdown button takes all the space horizontally. + |
+
| + + | +
+var disabled: Boolean
+Determines if the dropdown is disabled. + |
+
| + + | +
+var dropup: Boolean
+Determines if the dropdown is showing upwards. + |
+
| + + | +
+var icon: String?
+The icon of the dropdown button. + |
+
| + + | +
+var image: ResString?
+The image on the dropdown button. + |
+
| + + | +
+var size: ButtonSize?
+The size of the dropdown button. + |
+
| + + | +
+var style: ButtonStyle
+The style of the dropdown button. + |
+
| + + | +
+var text: String
+Label of the dropdown button. + |
+
| + + | +
+open var width: CssSize?
+Width of the dropdown button. + |
+
| + + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
| + + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
| + + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
| + + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
| + + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
| + + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
| + + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
| + + | +
+open fun toggle(): Unit
+Toggles dropdown visibility. + |
+
| + + | +
+fun addInternal(child: Component): SimplePanel
+Protected and final method to add given component to the current container. + |
+
| + + | +
+open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes. + |
+
| + + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
| + + | +
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+DSL builder extension function. + |
+
open fun removeAll(): SimplePanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): SimplePanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
var size: ButtonSize?
+The size of the dropdown button.
+ + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/style.html b/api/pl.treksoft.kvision.dropdown/-drop-down/style.html new file mode 100644 index 00000000..15e06226 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/style.html @@ -0,0 +1,15 @@ + + + +var style: ButtonStyle
+The style of the dropdown button.
+ + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/text.html b/api/pl.treksoft.kvision.dropdown/-drop-down/text.html new file mode 100644 index 00000000..48000a63 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/text.html @@ -0,0 +1,15 @@ + + + +var text: String
+Label of the dropdown button.
+ + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/toggle.html b/api/pl.treksoft.kvision.dropdown/-drop-down/toggle.html new file mode 100644 index 00000000..3c4ee0be --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/toggle.html @@ -0,0 +1,15 @@ + + + +open fun toggle(): Unit
+Toggles dropdown visibility.
+ + diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/width.html b/api/pl.treksoft.kvision.dropdown/-drop-down/width.html new file mode 100644 index 00000000..c86a3817 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/width.html @@ -0,0 +1,22 @@ + + + +open var width: CssSize?
+Overrides StyledComponent.width
+Width of the dropdown button.
+Getter
+
Width of the current component.
+ +Setter
+
Width of the current component.
+ + + diff --git a/api/pl.treksoft.kvision.dropdown/index.html b/api/pl.treksoft.kvision.dropdown/index.html new file mode 100644 index 00000000..d8a75232 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/index.html @@ -0,0 +1,36 @@ + + + +Bootstrap dropdown component.
+| + + | +
+enum class DD
+Useful options for use in DropDown's elements parameter. + |