From a1331da2233a7198af89a9db2ec743a430b89362 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, : 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, withCaret: Boolean = true, classes: Set<String> = setOf())
Parameters
text - the label of the dropdown buttondisabled - determines if the component is disabled on start
forNavbar - determines if the component will be used in a navbar
+withCaret - determines if the dropdown button renders caret
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 84df9354..0c1af12f 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, : 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, withCaret: Boolean = true, 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.