From 7c2850063697f94a0d8b8d8f8588136dd4b3d05e Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 21 Oct 2018 23:59:34 +0200 Subject: API documentation for KVision 0.0.19 --- .../-context-menu/index.html | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 api/kvision/pl.treksoft.kvision.dropdown/-context-menu/index.html (limited to 'api/kvision/pl.treksoft.kvision.dropdown/-context-menu/index.html') diff --git a/api/kvision/pl.treksoft.kvision.dropdown/-context-menu/index.html b/api/kvision/pl.treksoft.kvision.dropdown/-context-menu/index.html new file mode 100644 index 00000000..2c9823f1 --- /dev/null +++ b/api/kvision/pl.treksoft.kvision.dropdown/-context-menu/index.html @@ -0,0 +1,118 @@ + + + +ContextMenu - kvision + + + +kvision / pl.treksoft.kvision.dropdown / ContextMenu
+
+

ContextMenu

+open class ContextMenu : ListTag +

Context menu component.

+

Constructors

+ + + + + + + +
+

<init>

+
+ContextMenu(classes: Set<String> = setOf(), init: ContextMenu.() -> Unit = null)
+

Inherited Properties

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

elements

+
+var elements: List<String>? +

List of elements.

+
+

rich

+
+var rich: Boolean +

Determines if elements can contain HTML code.

+
+

type

+
+var type: ListType +

List type.

+
+

Functions

+ + + + + + + +
+

positionMenu

+
+open fun positionMenu(mouseEvent: MouseEvent): ContextMenu +

Positions and shows a context menu based on a mouse event.

+
+

Inherited Functions

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

childrenVNodes

+
+open fun childrenVNodes(): Array<VNode> +

Returns the array of the children Snabbdom vnodes.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Companion Object Functions

+ + + + + + + +
+

contextMenu

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

DSL builder extension function.

+
+ + -- cgit