From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+ Constructor DSL builder extension function. It takes the same parameters as the constructor of the built component. Context menu component. List of elements. Determines if elements can contain HTML code. List type. Positions and shows a context menu based on a mouse event. Returns the array of the children Snabbdom vnodes. Returns list of CSS class names for current widget in the form of a List. Renders current component as a Snabbdom vnode. DSL builder extension function. Positions and shows a context menu based on a mouse event. Return
+
+<init>
+
+ContextMenu(classes: Set<String> = setOf(), init: ContextMenu.() -> Unit = null)
+Parameters
+classes
- a set of CSS class names
+
+
+contextMenu
+
+fun Widget.contextMenu(classes: Set<String> = setOf(), init: ContextMenu.() -> Unit = null): ContextMenu
+
+
+ContextMenu
+open class ContextMenu : ListTag
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+ContextMenu(classes: Set<String> = setOf(), init: ContextMenu.() -> Unit = null)
Inherited Properties
+
+
+
+
+
+
+
+
+
+
+var elements: List<String>?
+
+
+
+
+
+
+
+var rich: Boolean
+
+
+
+
+
+
+
+
+var type: ListType
+Functions
+
+
+
+
+
+
+
+
+
+
+
+open fun positionMenu(mouseEvent: MouseEvent): ContextMenu
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+open fun childrenVNodes(): Array<VNode>
+
+
+
+
+
+
+
+open fun getSnClass(): List<StringBoolPair>
+
+
+
+
+
+
+
+
+open fun render(): VNode
+Companion Object Functions
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.dropdown/-context-menu/position-menu.html b/api/pl.treksoft.kvision.dropdown/-context-menu/position-menu.html
new file mode 100644
index 00000000..ded70c2c
--- /dev/null
+++ b/api/pl.treksoft.kvision.dropdown/-context-menu/position-menu.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+fun Widget.contextMenu(classes: Set<String> = setOf(), init: ContextMenu.() -> Unit = null): ContextMenu
+
+
+positionMenu
+
+open fun positionMenu(mouseEvent: MouseEvent): ContextMenu
+Parameters
+
+
+current context menu
<init>
-
-DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf())
+
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf())
Parameters
text
- the label of the dropdown buttonstyle
- the style of the dropdown button
disabled
- determines if the component is disabled on start
+forNavbar
- determines if the component will be used in a navbar
classes
- a set of CSS class names
Constructor
diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html b/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
index 7c88d682..84df9354 100644
--- a/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
+++ b/api/pl.treksoft.kvision.dropdown/-drop-down/drop-down.html
@@ -8,8 +8,8 @@
kvision / pl.treksoft.kvision.dropdown / DropDown / dropDown
fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
+
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, classes: Set<String> = setOf(), init: DropDown.() -> Unit = null): DropDown
DSL builder extension function.
It takes the same parameters as the constructor of the built component.
+kvision / pl.treksoft.kvision.dropdown / DropDown / forNavbarval forNavbar: Boolean
+determines if the component will be used in a navbar
+diff --git a/api/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html b/api/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html new file mode 100644 index 00000000..33497640 --- /dev/null +++ b/api/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html @@ -0,0 +1,15 @@ + +
+ +
+ + +
+