DropDown

open class DropDown(text: String, elements: List<<ERROR CLASS>>?, icon: String?, style: <ERROR CLASS>, direction: Direction, disabled: Boolean, forNavbar: Boolean, forDropDown: Boolean, dark: Boolean, className: String?, init: DropDown.() -> Unit?)

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

DropDown
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

Companion
Link copied to clipboard
object Companion

Functions

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

Toggles dropdown visibility.

Properties

autoClose
Link copied to clipboard
var autoClose: <ERROR CLASS>

The auto closing mode of the dropdown menu.

block
Link copied to clipboard
var block: <ERROR CLASS>

Determines if the dropdown button takes all the space horizontally.

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

Use dark background for the dropdown.

direction
Link copied to clipboard
var direction: <ERROR CLASS>

The direction of the dropdown.

disabled
Link copied to clipboard
var disabled: <ERROR CLASS>

Determines if the dropdown is disabled.

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

The icon of the dropdown button.

image
Link copied to clipboard
var image: <ERROR CLASS>

The image on the dropdown button.

size
Link copied to clipboard
var size: <ERROR CLASS>

The size of the dropdown button.

style
Link copied to clipboard
var style: <ERROR CLASS>

The style of the dropdown button.

text
Link copied to clipboard
var text: <ERROR CLASS>

Label of the dropdown button.

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

Width of the dropdown button.

Extensions

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

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

ddLinkDisabled
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.

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

DSL builder extension function.

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

DSL builder extension function.