Drop Down
open class DropDown(text: String, elements: List<<Error class: unknown class>>? = null, icon: String? = null, style: <Error class: unknown class> = ButtonStyle.PRIMARY, direction: Direction = Direction.DROPDOWN, disabled: Boolean = false, val forNavbar: Boolean = false, val forDropDown: Boolean = false, dark: Boolean = false, rightAligned: Boolean = false, autoClose: AutoClose = AutoClose.TRUE, arrowVisible: Boolean = true, className: String? = null, init: DropDown.() -> Unit? = null)
Bootstrap dropdown component.
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
right Aligned
right align the dropdown menu
auto Close
the auto closing mode of the dropdown menu
arrow Visible
show button arrow
class Name
CSS class names
init
an initializer extension function
Constructors
Link copied to clipboard
constructor(text: String, elements: List<<Error class: unknown class>>? = null, icon: String? = null, style: <Error class: unknown class> = 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)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun DropDown.ddLink(label: String, url: String? = null, icon: String? = null, image: <Error class: unknown class>? = null, dataNavigo: Boolean? = null, className: String? = null, init: <Error class: unknown class>.() -> Unit? = null): <Error class: unknown class>
DSL builder extension function for a link in a dropdown list.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard