From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb 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. use fixed positioning Context menu component. use fixed positioning 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. Helper function for creating JavaScript objects from dynamic constructors. Positions and shows a context menu based on a mouse event. Return Useful options for use in DropDown's elements parameter. Helper function for creating JavaScript objects from dynamic constructors.
+
+
+
+
+
+
+
+ Constructor Overrides SimplePanel.addAll Adds a list of components to the current container.
+ Return Overrides SimplePanel.add Adds given component to the current container. Return Overrides Widget.afterInsert Method called after inserting Snabbdom vnode into the DOM. Determines if the dropdown button takes all the space horizontally. Determines if the dropdown is disabled. DSL builder extension function. It takes the same parameters as the constructor of the built component. Determines if the dropdown is showing upwards. Getter Determines if the dropdown is showing upwards.
+
+DEFAULT_FIXED_POS_X
+
+const val DEFAULT_FIXED_POS_X: Int
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-context-menu/-d-e-f-a-u-l-t_-f-i-x-e-d_-p-o-s_-y.html b/api1/pl.treksoft.kvision.dropdown/-context-menu/-d-e-f-a-u-l-t_-f-i-x-e-d_-p-o-s_-y.html
new file mode 100644
index 00000000..dd1cf10f
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-context-menu/-d-e-f-a-u-l-t_-f-i-x-e-d_-p-o-s_-y.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+DEFAULT_FIXED_POS_Y
+
+const val DEFAULT_FIXED_POS_Y: Int
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-context-menu/-init-.html b/api1/pl.treksoft.kvision.dropdown/-context-menu/-init-.html
new file mode 100644
index 00000000..7fd2c64d
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-context-menu/-init-.html
@@ -0,0 +1,23 @@
+
+
+
+
+
+<init>
+
+ContextMenu(element: Widget? = null, fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null)
+Parameters
+
+fixedPosition
- use fixed positioningclasses
- a set of CSS class names
+
+
+contextMenu
+
+fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu
+
+
+fixedPosition
+
+protected val fixedPosition: Boolean
+
+
+ContextMenu
+open class ContextMenu : ListTag
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+ContextMenu(element: Widget? = null, fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null)
Properties
+
+
+
+
+
+
+
+
+
+
+
+val fixedPosition: Boolean
+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 Properties
+
+
+
+
+
+
+
+
+
+
+const val DEFAULT_FIXED_POS_X: Int
+
+
+
+
+
+
+
+const val DEFAULT_FIXED_POS_Y: Int
Companion Object Functions
+
+
+
+
+
+
+
+
+
+
+
+fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu
+Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-context-menu/position-menu.html b/api1/pl.treksoft.kvision.dropdown/-context-menu/position-menu.html
new file mode 100644
index 00000000..ded70c2c
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-context-menu/position-menu.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+positionMenu
+
+open fun positionMenu(mouseEvent: MouseEvent): ContextMenu
+Parameters
+
+
+current context menu
+
+DISABLED
+
+DISABLED
+Inherited Properties
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-d-d/-h-e-a-d-e-r.html b/api1/pl.treksoft.kvision.dropdown/-d-d/-h-e-a-d-e-r.html
new file mode 100644
index 00000000..c0521931
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-d-d/-h-e-a-d-e-r.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+HEADER
+
+HEADER
+Inherited Properties
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-d-d/-s-e-p-a-r-a-t-o-r.html b/api1/pl.treksoft.kvision.dropdown/-d-d/-s-e-p-a-r-a-t-o-r.html
new file mode 100644
index 00000000..d518de3c
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-d-d/-s-e-p-a-r-a-t-o-r.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+SEPARATOR
+
+SEPARATOR
+Inherited Properties
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-d-d/index.html b/api1/pl.treksoft.kvision.dropdown/-d-d/index.html
new file mode 100644
index 00000000..06fe5749
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-d-d/index.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+val option: String
+
+DD
+enum class DD
+Enum Values
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Properties
+
+
+
+
+
+
+
+
+
+
+
+val option: String
Extension Functions
+
+
+
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-d-d/option.html b/api1/pl.treksoft.kvision.dropdown/-d-d/option.html
new file mode 100644
index 00000000..518c5aed
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-d-d/option.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+option
+
+val option: String
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/-init-.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
new file mode 100644
index 00000000..67e3cdef
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/-init-.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+<init>
+
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf())
+Parameters
+text
- the label of the dropdown buttonelements
- an optional list of link elements (special options from DD enum class can be used as values)icon
- the icon of the dropdown buttonstyle
- the style of the dropdown buttondisabled
- determines if the component is disabled on startforNavbar
- determines if the component will be used in a navbarwithCaret
- determines if the dropdown button renders caretclasses
- a set of CSS class names
+
+
+addAll
+
+open fun addAll(children: List<Component>): SimplePanel
+Parameters
+children
- list of child components
+current container
+
+add
+
+open fun add(child: Component): SimplePanel
+Parameters
+
+
+current container
+
+afterInsert
+
+protected open fun afterInsert(node: VNode): Unit
+
+
+block
+
+var block: Boolean
+
+
+buttonId
+
+fun buttonId(): String?
+
+
diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/disabled.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/disabled.html
new file mode 100644
index 00000000..9c25d116
--- /dev/null
+++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/disabled.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+disabled
+
+var disabled: Boolean
+
+
+dropDown
+
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: (DropDown.() -> Unit)? = null): DropDown
+
+
+dropup
+
+var dropup: Boolean
+
+
Setter
+
Determines if the dropdown is showing upwards.
+ + + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html new file mode 100644 index 00000000..33497640 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/for-navbar.html @@ -0,0 +1,15 @@ + + + +val forNavbar: Boolean
+determines if the component will be used in a navbar
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/get-children.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/get-children.html new file mode 100644 index 00000000..749b4086 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/get-children.html @@ -0,0 +1,18 @@ + + + +open fun getChildren(): List<Component>
+Overrides SimplePanel.getChildren
+Returns a list of children of the current container.
+Return
+list of children
protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
var icon: String?
+The icon of the dropdown button.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/image.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/image.html new file mode 100644 index 00000000..56755e67 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/image.html @@ -0,0 +1,15 @@ + + + +var image: ResString?
+The image on the dropdown button.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/index.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/index.html new file mode 100644 index 00000000..245bb51f --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/index.html @@ -0,0 +1,265 @@ + + + +open class DropDown : SimplePanel
+Bootstrap dropdown component.
++ + | +
+DropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf()) |
+
+ + | +
+var block: Boolean
+Determines if the dropdown button takes all the space horizontally. + |
+
+ + | +
+var disabled: Boolean
+Determines if the dropdown is disabled. + |
+
+ + | +
+var dropup: Boolean
+Determines if the dropdown is showing upwards. + |
+
+ + | +
+val forNavbar: Boolean
+determines if the component will be used in a navbar + |
+
+ + | +
+var icon: String?
+The icon of the dropdown button. + |
+
+ + | +
+var image: ResString?
+The image on the dropdown button. + |
+
+ + | +
+var size: ButtonSize?
+The size of the dropdown button. + |
+
+ + | +
+var style: ButtonStyle
+The style of the dropdown button. + |
+
+ + | +
+var text: String
+Label of the dropdown button. + |
+
+ + | +
+open var width: CssSize?
+Width of the dropdown button. + |
+
+ + | +
+open fun add(child: Component): SimplePanel
+Adds given component to the current container. + |
+
+ + | +
+open fun addAll(children: List<Component>): SimplePanel
+Adds a list of components to the current container. + |
+
+ + | +
+open fun afterInsert(node: VNode): Unit
+Method called after inserting Snabbdom vnode into the DOM. + |
+
+ + | +
+fun buttonId(): String? |
+
+ + | +
+open fun getChildren(): List<Component>
+Returns a list of children of the current container. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun remove(child: Component): SimplePanel
+Removes given component from the current container. + |
+
+ + | +
+open fun removeAll(): SimplePanel
+Removes all children from the current container. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+open fun toggle(): Unit
+Toggles dropdown visibility. + |
+
+ + | +
+fun addInternal(child: Component): SimplePanel
+Protected and final method to add given component to the current container. + |
+
+ + | +
+open fun childrenVNodes(): Array<VNode>
+Returns the array of the children Snabbdom vnodes. + |
+
+ + | +
+fun Container.dropDown(text: String, elements: List<StringPair>? = null, icon: String? = null, style: ButtonStyle = ButtonStyle.DEFAULT, disabled: Boolean = false, : Boolean = false, withCaret: Boolean = true, classes: Set<String> = setOf(), init: (DropDown.() -> Unit)? = null): DropDown
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
open fun removeAll(): SimplePanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
open fun remove(child: Component): SimplePanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
protected open fun render(): VNode
+Overrides SimplePanel.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
var size: ButtonSize?
+The size of the dropdown button.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/style.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/style.html new file mode 100644 index 00000000..15e06226 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/style.html @@ -0,0 +1,15 @@ + + + +var style: ButtonStyle
+The style of the dropdown button.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/text.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/text.html new file mode 100644 index 00000000..48000a63 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/text.html @@ -0,0 +1,15 @@ + + + +var text: String
+Label of the dropdown button.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/toggle.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/toggle.html new file mode 100644 index 00000000..3c4ee0be --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/toggle.html @@ -0,0 +1,15 @@ + + + +open fun toggle(): Unit
+Toggles dropdown visibility.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-drop-down/width.html b/api1/pl.treksoft.kvision.dropdown/-drop-down/width.html new file mode 100644 index 00000000..e49c85c0 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-drop-down/width.html @@ -0,0 +1,16 @@ + + + +open var width: CssSize?
+Overrides StyledComponent.width
+Width of the dropdown button.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-header/-init-.html b/api1/pl.treksoft.kvision.dropdown/-header/-init-.html new file mode 100644 index 00000000..3d47ac09 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-header/-init-.html @@ -0,0 +1,21 @@ + + + +Header(content: String? = null, classes: Set<String> = setOf())
+
+content
- header content text
+classes
- a set of CSS class names
Constructor
+
fun ListTag.header(content: String? = null, classes: Set<String> = setOf()): Header
fun DropDown.header(content: String? = null, classes: Set<String> = setOf()): Header
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/-header/index.html b/api1/pl.treksoft.kvision.dropdown/-header/index.html new file mode 100644 index 00000000..3fc28402 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/-header/index.html @@ -0,0 +1,154 @@ + + + +open class Header : Tag
+Menu header component.
++ + | +
+Header(content: String? = null, classes: Set<String> = setOf()) |
+
+ + | +
+var align: Align?
+Text align. + |
+
+ + | +
+open var content: String?
+Text content of the tag. + |
+
+ + | +
+open var rich: Boolean
+Determines if content can contain HTML code. + |
+
+ + | +
+open var template: ((Any?) -> String)?
+Handlebars template. + |
+
+ + | +
+open var templates: Map<String, (Any?) -> String>
+Handlebars templates for i18n. + |
+
+ + | +
+var type: TAG
+Tag type. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+operator fun String.unaryPlus(): Unit |
+
+ + | +
+fun ListTag.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 <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
+ + | +
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit + fun <K : Any> Template.setData(obj: K): Unit
+Extension function to set serializable object as a template data. + |
+
Separator(classes: Set<String> = setOf())
+
+classes
- a set of CSS class names
Constructor
+
open class Separator : Tag
+Menu separator component.
++ + | +
+Separator(classes: Set<String> = setOf()) |
+
+ + | +
+var align: Align?
+Text align. + |
+
+ + | +
+open var content: String?
+Text content of the tag. + |
+
+ + | +
+open var rich: Boolean
+Determines if content can contain HTML code. + |
+
+ + | +
+open var template: ((Any?) -> String)?
+Handlebars template. + |
+
+ + | +
+open var templates: Map<String, (Any?) -> String>
+Handlebars templates for i18n. + |
+
+ + | +
+var type: TAG
+Tag type. + |
+
+ + | +
+open fun getSnClass(): List<StringBoolPair>
+Returns list of CSS class names for current widget in the form of a List. + |
+
+ + | +
+open fun render(): VNode
+Renders current component as a Snabbdom vnode. + |
+
+ + | +
+operator fun String.unaryPlus(): Unit |
+
+ + | +
+fun ListTag.separator(classes: Set<String> = setOf()): Separator + fun DropDown.separator(classes: Set<String> = setOf()): Separator
+DSL builder extension function. + |
+
+ + | +
+fun <T> Any?.createInstance(vararg args: dynamic): T
+Helper function for creating JavaScript objects from dynamic constructors. + |
+
+ + | +
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit + fun <K : Any> Template.setData(obj: K): Unit
+Extension function to set serializable object as a template data. + |
+
fun ListTag.separator(classes: Set<String> = setOf()): Separator
fun DropDown.separator(classes: Set<String> = setOf()): Separator
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api1/pl.treksoft.kvision.dropdown/index.html b/api1/pl.treksoft.kvision.dropdown/index.html new file mode 100644 index 00000000..7a7a7294 --- /dev/null +++ b/api1/pl.treksoft.kvision.dropdown/index.html @@ -0,0 +1,63 @@ + + + +Bootstrap dropdown component with support for navigation bars and context menus.
++ + | +
+open class ContextMenu : ListTag
+Context menu component. + |
+
+ + | +
+enum class DD
+Useful options for use in DropDown's elements parameter. + |
+
+ + | +
+open class DropDown : SimplePanel
+Bootstrap dropdown component. + |
+
+ + | +
+open class Header : Tag
+Menu header component. + |
+
+ + | +
+open class Separator : Tag
+Menu separator component. + |
+