Package io.kvision.dropdown

Bootstrap dropdown component with support for navigation bars and context menus.

Types

Link copied to clipboard
enum AutoClose : Enum<AutoClose>

Dropdown auto close.

Link copied to clipboard
open class ContextMenu(    element: <ERROR CLASS>? = null,     fixedPosition: Boolean = false,     className: String? = null,     init: ContextMenu.() -> Unit? = null)

Context menu component.

Link copied to clipboard
enum DD : Enum<DD>

Useful options for use in DropDown's elements parameter.

Link copied to clipboard
enum Direction : Enum<Direction>

Dropdown directions.

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

Link copied to clipboard
class DropDownButton(    id: String,     text: String,     icon: String? = null,     style: <ERROR CLASS> = ButtonStyle.PRIMARY,     disabled: Boolean = false,     val forNavbar: Boolean = false,     val forDropDown: Boolean = false,     autoClose: AutoClose = AutoClose.TRUE,     className: String? = null)

A drop down button component.

Link copied to clipboard
open class Header(content: String? = null, className: String? = null)

Menu header component.

Link copied to clipboard
open class Separator(className: String? = null)

Menu separator component.

Functions

Link copied to clipboard
fun ContextMenu.cmLink(    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 context menu list.

Link copied to clipboard
fun ContextMenu.cmLinkDisabled(    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 context menu list.

Link copied to clipboard
fun <ERROR CLASS>.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: <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 <ERROR CLASS>.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): DropDown

DSL builder extension function.

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

DSL builder extension function.

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

DSL builder extension function.

Link copied to clipboard
fun <ERROR CLASS>.setContextMenu(contextMenu: ContextMenu): <ERROR CLASS>

Sets context menu for the current widget.