From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- api/pl.treksoft.kvision.dropdown/index.html | 101 +++++++++++++++++++++++++++- 1 file changed, 99 insertions(+), 2 deletions(-) (limited to 'api/pl.treksoft.kvision.dropdown/index.html') diff --git a/api/pl.treksoft.kvision.dropdown/index.html b/api/pl.treksoft.kvision.dropdown/index.html index 7a7a7294..cbd2ca11 100644 --- a/api/pl.treksoft.kvision.dropdown/index.html +++ b/api/pl.treksoft.kvision.dropdown/index.html @@ -17,7 +17,7 @@

ContextMenu

-open class ContextMenu : ListTag +open class ContextMenu : Div

Context menu component.

@@ -32,6 +32,15 @@ +

Direction

+ + +enum class Direction +

Dropdown directions.

+ + + +

DropDown

@@ -53,11 +62,99 @@

Separator

-open class Separator : Tag +open class Separator : Div

Menu separator component.

+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

cmLink

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

+
+

cmLinkDisabled

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

+
+

contextMenu

+
+fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu +

DSL builder extension function.

+
+

ddLink

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

+
+

ddLinkDisabled

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

+
+

dropDown

+
+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, classes: Set<String> = setOf(), init: (DropDown.() -> Unit)? = null): DropDown +

DSL builder extension function.

+
+

header

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

+
+

separator

+
+fun ContextMenu.separator(classes: Set<String> = setOf()): Separator
+fun DropDown.separator(classes: Set<String> = setOf()): Separator +

DSL builder extension function.

+
+

setContextMenu

+
+fun Widget.setContextMenu(contextMenu: ContextMenu): Widget +

Sets context menu for the current widget.

+
-- cgit