Bootstrap dropdown component with support for navigation bars and context menus.
open class ContextMenu : Div
Context menu component. |
|
enum class DD
Useful options for use in DropDown's elements parameter. |
|
enum class Direction
Dropdown directions. |
|
open class DropDown : SimplePanel
Bootstrap dropdown component. |
|
open class Header : Tag
Menu header component. |
|
open class Separator : Div
Menu separator component. |
fun ContextMenu.cmLink(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
DSL builder extension function for a link in a context menu list. |
|
fun ContextMenu.cmLinkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
DSL builder extension function for a disabled link in a context menu list. |
|
fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu
DSL builder extension function. |
|
fun DropDown.ddLink(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
DSL builder extension function for a link in a dropdown list. |
|
fun DropDown.ddLinkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
DSL builder extension function for a disabled link in a dropdown list. |
|
fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, direction: Direction = Direction.DROPDOWN, disabled: Boolean = false, : Boolean = false, forDropDown: Boolean = false, classes: Set<String> = setOf(), init: (DropDown.() -> Unit)? = null): DropDown
DSL builder extension function. |
|
fun ContextMenu.header(content: String? = null, classes: Set<String> = setOf()): Header fun DropDown.header(content: String? = null, classes: Set<String> = setOf()): Header
DSL builder extension function. |
|
fun ContextMenu.separator(classes: Set<String> = setOf()): Separator fun DropDown.separator(classes: Set<String> = setOf()): Separator
DSL builder extension function. |
|
fun Widget.setContextMenu(contextMenu: ContextMenu): Widget
Sets context menu for the current widget. |