Drop Down
fun DropDown(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, className: String? = null, init: DropDown.() -> Unit? = null)
Content copied to clipboard
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
for Navbar
determines if the component will be used in a navbar
for Drop Down
determines if the component will be used in a dropdown
dark
use dark background
class Name
CSS class names
init
an initializer extension function