open class DropDown : SimplePanel
Bootstrap dropdown component.
DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf()) |
var block: Boolean
Determines if the dropdown button takes all the space horizontally. |
|
var disabled: Boolean
Determines if the dropdown is disabled. |
|
var dropup: Boolean
Determines if the dropdown is showing upwards. |
|
val forNavbar: Boolean
determines if the component will be used in a navbar |
|
var icon: String?
The icon of the dropdown button. |
|
var image: ResString?
The image on the dropdown button. |
|
var size: ButtonSize?
The size of the dropdown button. |
|
var style: ButtonStyle
The style of the dropdown button. |
|
var text: String
Label of the dropdown button. |
|
open var width: CssSize?
Width of the dropdown button. |
open fun add(child: Component): SimplePanel
Adds given component to the current container. |
|
open fun addAll(children: List<Component>): SimplePanel
Adds a list of components to the current container. |
|
open fun afterInsert(node: VNode): Unit
Method called after inserting Snabbdom vnode into the DOM. |
|
fun buttonId(): String? |
|
open fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
open fun remove(child: Component): SimplePanel
Removes given component from the current container. |
|
open fun removeAll(): SimplePanel
Removes all children from the current container. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
|
open fun toggle(): Unit
Toggles dropdown visibility. |
fun addInternal(child: Component): SimplePanel
Protected and final method to add given component to the current container. |
|
open fun childrenVNodes(): Array<VNode>
Returns the array of the children Snabbdom vnodes. |
fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: (DropDown.() -> Unit)? = null): DropDown
DSL builder extension function. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |