kvision / pl.treksoft.kvision.dropdown / DropDown / <init>

<init>

DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, forNavbar: Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf())

Parameters

text - the label of the dropdown button

elements - an optional list of link elements (special options from DD enum class can be used as values)

icon - the icon of the dropdown button

style - 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

withCaret - determines if the dropdown button renders caret

classes - a set of CSS class names

Constructor