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

classes - a set of CSS class names

Constructor