DropDown
constructor(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, direction: Direction = Direction.DROPDOWN, disabled: Boolean = false, forNavbar: Boolean = false, forDropDown: Boolean = false, dark: Boolean = false, rightAligned: Boolean = false, autoClose: AutoClose = AutoClose.TRUE, arrowVisible: Boolean = true, className: String? = null, init: DropDown.() -> Unit? = null)(source)
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
direction
the direction of the dropdown
disabled
determines if the component is disabled on start
forNavbar
determines if the component will be used in a navbar
forDropDown
determines if the component will be used in a dropdown
dark
use dark background
rightAligned
right align the dropdown menu
autoClose
the auto closing mode of the dropdown menu
arrowVisible
show button arrow
className
CSS class names
init
an initializer extension function