DropDown

open class DropDown(    text: String,     elements: List<<ERROR CLASS>>? = null,     icon: String? = null,     style: <ERROR CLASS> = ButtonStyle.PRIMARY,     direction: Direction = Direction.DROPDOWN,     disabled: Boolean = false,     val forNavbar: Boolean = false,     val forDropDown: Boolean = false,     dark: Boolean = false,     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

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

className

CSS class names

init

an initializer extension function

Constructors

Link copied to clipboard
fun DropDown(    text: String,     elements: List<<ERROR CLASS>>? = null,     icon: String? = null,     style: <ERROR CLASS> = 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)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun add(child: <ERROR CLASS>): DropDown
open fun add(position: Int, child: <ERROR CLASS>): DropDown
Link copied to clipboard
open fun addAll(children: List<<ERROR CLASS>>): DropDown
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <ERROR CLASS>)
Link copied to clipboard
fun buttonId(): <ERROR CLASS>
Link copied to clipboard
open fun disposeAll(): DropDown
Link copied to clipboard
open fun getChildren(): List<<ERROR CLASS>>
Link copied to clipboard
open fun remove(child: <ERROR CLASS>): DropDown
Link copied to clipboard
open fun removeAll(): DropDown
Link copied to clipboard
open fun removeAt(position: Int): DropDown
Link copied to clipboard
open fun toggle()

Toggles dropdown visibility.

Properties

Link copied to clipboard
var autoClose: <ERROR CLASS>

The auto closing mode of the dropdown menu.

Link copied to clipboard
var block: <ERROR CLASS>

Determines if the dropdown button takes all the space horizontally.

Link copied to clipboard
val button: DropDownButton
Link copied to clipboard
var dark: <ERROR CLASS>

Use dark background for the dropdown.

Link copied to clipboard
var direction: <ERROR CLASS>

The direction of the dropdown.

Link copied to clipboard
var disabled: <ERROR CLASS>

Determines if the dropdown is disabled.

Link copied to clipboard
val forDropDown: Boolean = false
Link copied to clipboard
val forNavbar: Boolean = false
Link copied to clipboard
var icon: <ERROR CLASS>

The icon of the dropdown button.

Link copied to clipboard
var image: <ERROR CLASS>

The image on the dropdown button.

Link copied to clipboard
var size: <ERROR CLASS>

The size of the dropdown button.

Link copied to clipboard
var style: <ERROR CLASS>

The style of the dropdown button.

Link copied to clipboard
var text: <ERROR CLASS>

Label of the dropdown button.

Link copied to clipboard
open var width: <ERROR CLASS>?

Width of the dropdown button.

Extensions

Link copied to clipboard
fun DropDown.ddLink(    label: String,     url: String? = null,     icon: String? = null,     image: <ERROR CLASS>? = null,     dataNavigo: Boolean? = null,     className: String? = null,     init: <ERROR CLASS>.() -> Unit? = null): <ERROR CLASS>

DSL builder extension function for a link in a dropdown list.

Link copied to clipboard
fun DropDown.ddLinkDisabled(    label: String,     icon: String? = null,     image: <ERROR CLASS>? = null,     className: String? = null,     init: <ERROR CLASS>.() -> Unit? = null): <ERROR CLASS>

DSL builder extension function for a disabled link in a dropdown list.

Link copied to clipboard
fun DropDown.header(content: String? = null, className: String? = null): Header

DSL builder extension function.

Link copied to clipboard
fun DropDown.separator(className: String? = null): Separator

DSL builder extension function.