DropDown

open class DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = 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) : SimplePanel(source)

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

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

Constructors

Link copied to clipboard
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)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var _archivedState: dynamic
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Show button arrow.

Link copied to clipboard

The auto closing mode of the dropdown menu.

Link copied to clipboard
Link copied to clipboard

Determines if the dropdown button takes all the space horizontally.

Link copied to clipboard
open var border: Border?
Link copied to clipboard
open var borderBottom: Border?
Link copied to clipboard
open var borderLeft: Border?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var borderRight: Border?
Link copied to clipboard
open var borderTop: Border?
Link copied to clipboard
open var bottom: CssSize?
Link copied to clipboard
open var boxShadow: BoxShadow?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var clear: Clear?
Link copied to clipboard
open var color: Color?
Link copied to clipboard
open var colorHex: Int?
Link copied to clipboard
open var colorName: Col?
Link copied to clipboard
open var cursor: Cursor?
Link copied to clipboard

Use dark background for the dropdown.

Link copied to clipboard

The direction of the dropdown.

Link copied to clipboard

Determines if the dropdown is disabled.

Link copied to clipboard
open var display: Display?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var flexBasis: CssSize?
Link copied to clipboard
Link copied to clipboard
open var flexGrow: Int?
Link copied to clipboard
open var flexShrink: Int?
Link copied to clipboard
open var flexWrap: FlexWrap?
Link copied to clipboard
open var float: PosFloat?
Link copied to clipboard
open var fontFamily: String?
Link copied to clipboard
open var fontSize: CssSize?
Link copied to clipboard
open var fontStyle: FontStyle?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val forDropDown: Boolean = false
Link copied to clipboard
val forNavbar: Boolean = false
Link copied to clipboard
open var gridArea: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var gridAutoRows: String?
Link copied to clipboard
Link copied to clipboard
open var gridColumnGap: Int?
Link copied to clipboard
open var gridColumnStart: Int?
Link copied to clipboard
open var gridRowEnd: String?
Link copied to clipboard
open var gridRowGap: Int?
Link copied to clipboard
open var gridRowStart: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var height: CssSize?
Link copied to clipboard
var icon: String?

The icon of the dropdown button.

Link copied to clipboard
var id: String?
Link copied to clipboard

The image on the dropdown button.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var kvscope: dynamic
Link copied to clipboard
open var left: CssSize?
Link copied to clipboard
Link copied to clipboard
open var lineBreak: LineBreak?
Link copied to clipboard
open var lineHeight: CssSize?
Link copied to clipboard
open var listStyle: ListStyle?
Link copied to clipboard
open var margin: CssSize?
Link copied to clipboard
Link copied to clipboard
open var marginLeft: CssSize?
Link copied to clipboard
open var marginRight: CssSize?
Link copied to clipboard
open var marginTop: CssSize?
Link copied to clipboard
open var maxHeight: CssSize?
Link copied to clipboard
open var maxWidth: CssSize?
Link copied to clipboard
Link copied to clipboard
open var minHeight: CssSize?
Link copied to clipboard
open var minWidth: CssSize?
Link copied to clipboard
open var opacity: Double?
Link copied to clipboard
open var order: Int?
Link copied to clipboard
open var outline: Outline?
Link copied to clipboard
open var overflow: Overflow?
Link copied to clipboard
Link copied to clipboard
open var overflowX: Overflow?
Link copied to clipboard
open var overflowY: Overflow?
Link copied to clipboard
open var padding: CssSize?
Link copied to clipboard
Link copied to clipboard
open var paddingLeft: CssSize?
Link copied to clipboard
Link copied to clipboard
open var paddingTop: CssSize?
Link copied to clipboard
open override var parent: Container?
Link copied to clipboard
Link copied to clipboard
var popoverOptions: dynamic
Link copied to clipboard
open var position: Position?
Link copied to clipboard
open var resize: Resize?
Link copied to clipboard
open var right: CssSize?
Link copied to clipboard

Right align the dropdown menu.

Link copied to clipboard
var role: String?
Link copied to clipboard

The size of the dropdown button.

Link copied to clipboard

The style of the dropdown button.

Link copied to clipboard
Link copied to clipboard

Label of the dropdown button.

Link copied to clipboard
open var textAlign: TextAlign?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var textIndent: CssSize?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var tooltipOptions: dynamic
Link copied to clipboard
open var top: CssSize?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var visible: Boolean
Link copied to clipboard
Link copied to clipboard
open override var width: CssSize?

Width of the dropdown button.

Link copied to clipboard
open var wordBreak: WordBreak?
Link copied to clipboard
open var wordSpacing: CssSize?
Link copied to clipboard
open var zIndex: Int?

Functions

Link copied to clipboard
open override fun add(child: Component)
open override fun add(position: Int, child: Component)
Link copied to clipboard
open override fun addAfterCreateHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun addAfterDestroyHook(hook: () -> Unit): Boolean
Link copied to clipboard
open override fun addAfterInsertHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun addAll(children: List<Component>)
Link copied to clipboard
open override fun addBeforeDisposeHook(hook: () -> Unit): Boolean
Link copied to clipboard
Link copied to clipboard
fun Component.addBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.addBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard
open override fun addCssClass(css: String)
Link copied to clipboard
open override fun addCssStyle(css: Style)
Link copied to clipboard
open override fun addSurroundingCssClass(css: String)
Link copied to clipboard
open override fun addSurroundingCssStyle(css: Style)
Link copied to clipboard
fun Container.badge(content: String? = null, bsColor: BsColor = BsColor.SECONDARYBG, rounded: Boolean = false, position: BadgePosition? = null, init: Badge.() -> Unit = {}): Badge

DSL builder extension function.

Link copied to clipboard
open fun blur()
Link copied to clipboard
fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, className: String? = null, init: ButtonGroup.() -> Unit? = null): ButtonGroup

DSL builder extension function.

Link copied to clipboard
Link copied to clipboard
open override fun clearAfterCreateHooks()
Link copied to clipboard
open override fun clearAfterDestroyHooks()
Link copied to clipboard
open override fun clearAfterInsertHooks()
Link copied to clipboard
open override fun clearBeforeDisposeHooks()
Link copied to clipboard
Link copied to clipboard
open override fun clearParent()
Link copied to clipboard
fun Container.collapse(id: String, groupId: String? = null, horizontal: Boolean = false, opened: Boolean = false, init: Collapse.() -> Unit): Collapse

DSL builder extension function. It takes the same parameters as the constructor of the built component.

Link copied to clipboard
fun Widget.contextMenu(fixedPosition: Boolean = false, className: String? = null, init: ContextMenu.() -> Unit? = null): ContextMenu

DSL builder extension function.

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

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

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

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

Link copied to clipboard

Disables popover for the current widget.

Link copied to clipboard

Disables tooltip for the current widget.

Link copied to clipboard
open fun dispatchEvent(type: String, eventInitDict: CustomEventInit): Boolean?
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open override fun disposeAll()
Link copied to clipboard
fun Container.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, rightAligned: Boolean = false, autoClose: AutoClose = AutoClose.TRUE, arrowVisible: Boolean = true, className: String? = null, init: DropDown.() -> Unit? = null): DropDown

DSL builder extension function.

Link copied to clipboard
fun Widget.enablePopover(options: PopoverOptions = PopoverOptions())

Enables popover for the current widget.

Link copied to clipboard
fun Widget.enableTooltip(options: TooltipOptions = TooltipOptions())

Enables tooltip for the current widget.

Link copied to clipboard
open fun focus()
Link copied to clipboard
open override fun getAttribute(name: String): String?
Link copied to clipboard
open override fun getChildren(): List<Component>
Link copied to clipboard
open override fun getElement(): HTMLElement?
Link copied to clipboard
open override fun getElementD(): dynamic
Link copied to clipboard
open override fun getRoot(): Root?
Link copied to clipboard
open fun getSnStyle(): dynamic
Link copied to clipboard
fun getStyle(name: String): String?
Link copied to clipboard
open override fun hasCssClass(css: String): Boolean
Link copied to clipboard
fun DropDown.header(content: String? = null, className: String? = null): Header

DSL builder extension function.

Link copied to clipboard
open fun hide()
Link copied to clipboard

Hides popover for the current widget.

Link copied to clipboard

Hides tooltip for the current widget.

Link copied to clipboard
open operator fun invoke(vararg children: Component)
Link copied to clipboard
fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor? = null, bgColor: BsBgColor = BsBgColor.BODYTERTIARY, collapseOnClick: Boolean = false, dataNavigo: Boolean? = null, containerType: ContainerType = ContainerType.FLUID, className: String? = null, init: Navbar.() -> Unit? = null): Navbar

DSL builder extension function.

Link copied to clipboard
fun Container.offcanvas(caption: String? = null, placement: OffPlacement = OffPlacement.START, closeButton: Boolean = true, dark: Boolean = false, responsiveType: OffResponsiveType? = null, scrollableBody: Boolean = false, backdrop: Boolean = true, escape: Boolean = true, className: String? = null, init: Offcanvas.() -> Unit? = null): Offcanvas

DSL builder extension function.

Link copied to clipboard
fun <T> Container.progress(bounds: Bounds<T>, className: String? = null, init: Progress<T>.() -> Unit? = null): Progress<T>
fun Container.progress(min: Number = 0, max: Number = 100, className: String? = null, init: Progress<Number>.() -> Unit? = null): Progress<Number>

DSL builder extension function.

Link copied to clipboard
open override fun refresh()
Link copied to clipboard
open override fun remove(child: Component)
Link copied to clipboard
open override fun removeAfterCreateHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun removeAfterDestroyHook(hook: () -> Unit): Boolean
Link copied to clipboard
open override fun removeAfterInsertHook(hook: (VNode) -> Unit): Boolean
Link copied to clipboard
open override fun removeAll()
Link copied to clipboard
open override fun removeAt(position: Int)
Link copied to clipboard
open override fun removeAttribute(name: String)
Link copied to clipboard
open override fun removeBeforeDisposeHook(hook: () -> Unit): Boolean
Link copied to clipboard
Link copied to clipboard
fun Component.removeBsBorder(vararg bsBorder: BsBorder)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Component.removeBsRounded(vararg bsRounded: BsRounded)
Link copied to clipboard
open override fun removeCssClass(css: String)
Link copied to clipboard
open override fun removeCssStyle(css: Style)
Link copied to clipboard
open fun removeEventListener(id: Int)
Link copied to clipboard
Link copied to clipboard
fun removeStyle(name: String)
Link copied to clipboard
open override fun removeSurroundingCssClass(css: String)
Link copied to clipboard
open override fun removeSurroundingCssStyle(css: Style)
Link copied to clipboard
open override fun renderVNode(): VNode
Link copied to clipboard
fun Container.responsiveGridPanel(gridSize: GridSize = GridSize.MD, rows: Int = 0, cols: Int = 0, align: Align? = null, className: String? = null, init: ResponsiveGridPanel.() -> Unit? = null): ResponsiveGridPanel

DSL builder extension function.

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

DSL builder extension function.

Link copied to clipboard
open override fun setAttribute(name: String, value: String)
Link copied to clipboard

Sets context menu for the current widget.

Link copied to clipboard
open fun setDragDropData(format: String, data: String)
Link copied to clipboard
open fun setDropTarget(format: String, callback: (DragEvent) -> Unit)
open fun setDropTarget(formats: Set<String>?, callback: (DragEvent) -> Unit)
Link copied to clipboard
open fun setDropTargetData(format: String, callback: (String?) -> Unit)
Link copied to clipboard
open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int
Link copied to clipboard
fun setStyle(name: String, value: String)
Link copied to clipboard
open fun show()
Link copied to clipboard

Shows popover for the current widget.

Link copied to clipboard

Shows tooltip for the current widget.

Link copied to clipboard
open override fun <T> singleRender(block: () -> T): T
Link copied to clipboard
open override fun singleRenderAsync(block: () -> Unit)
Link copied to clipboard
fun Container.switch(value: Boolean = false, name: String? = null, labelFirst: Boolean = false, label: String? = null, rich: Boolean = false, init: Switch.() -> Unit? = null): Switch

DSL builder extension function.

Link copied to clipboard
fun Container.switchInput(value: Boolean = false, className: String? = null, init: SwitchInput.() -> Unit? = null): SwitchInput

DSL builder extension function.

Link copied to clipboard
fun Container.table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsiveType: ResponsiveType? = null, tableColor: TableColor? = null, theadColor: TableColor? = null, tbodyDivider: Boolean = false, className: String? = null, init: Table.() -> Unit? = null): Table

DSL builder extension function.

Link copied to clipboard
fun Container.tabPanel(tabPosition: TabPosition = TabPosition.TOP, sideTabSize: SideTabSize = SideTabSize.SIZE_3, scrollableTabs: Boolean = false, draggableTabs: Boolean = false, className: String? = null, init: TabPanel.() -> Unit? = null): TabPanel

DSL builder extension function.

Link copied to clipboard
fun Container.themeSwitcher(title: String? = "Switch color theme", style: ButtonStyle = ButtonStyle.SECONDARY, round: Boolean = false, disabled: Boolean = false, className: String? = null, init: ThemeSwitcher.() -> Unit? = null): ThemeSwitcher

DSL builder extension function.

Link copied to clipboard
open fun toggle()

Toggles dropdown visibility.

Link copied to clipboard
open fun toggleVisible()
Link copied to clipboard
fun Container.toolbar(size: ButtonGroupSize? = null, spacing: Int = 2, vertical: Boolean = false, className: String? = null, init: Toolbar.() -> Unit? = null): Toolbar

DSL builder extension function.

Link copied to clipboard
open fun translate(text: String): String
open fun translate(text: String?): String?
Link copied to clipboard
open operator fun String.unaryPlus()
Link copied to clipboard
Link copied to clipboard
fun Container.window(caption: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, maximizeButton: Boolean = false, minimizeButton: Boolean = false, icon: String? = null, className: String? = null, init: Window.() -> Unit? = null): Window

DSL builder extension function.