From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001
From: Robert Jaros
<init>
-
-DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
+
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf())
Parameters
text - the label of the dropdown buttonstyle - the style of the dropdown button
disabled - determines if the component is disabled on start
+forNavbar - determines if the component will be used in a navbar
classes - a set of CSS class names
Constructor
diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html b/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
index 7c88d682..84df9354 100644
--- a/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
+++ b/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
@@ -8,8 +8,8 @@
kvision / pl.treksoft.kvision.dropdown / DropDown / 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
+
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
DSL builder extension function.
It takes the same parameters as the constructor of the built component.
+kvision / pl.treksoft.kvision.dropdown / DropDown / forNavbarval forNavbar: Boolean
+determines if the component will be used in a navbar
+diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html b/api/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html new file mode 100644 index 00000000..33497640 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html @@ -0,0 +1,15 @@ + +
+ +
+ + +
+