From 61545b3f1fb1844af350d187edd26285e98f0466 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+
+
+
+
+ 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.afterCreate Method called after creating Snabbdom vnode. Window caption text. Determines if Close button is visible. Window content height. Window content width. Overrides SimplePanel.getChildren Returns a list of children of the current container. Return Floating window container. Window caption text. Determines if Close button is visible. Window content height. Window content width. Determines if the window is draggable. Determines if the window is resizable. Adds given component to the current container. Adds a list of components to the current container. Method called after creating Snabbdom vnode. Returns a list of children of the current container. Removes given component from the current container. Removes all children from the current container. Protected and final method to add given component to the current container. Returns the array of the children Snabbdom vnodes. Renders current component as a Snabbdom vnode. DSL builder extension function. Determines if the window is draggable. Getter Determines if the window is draggable.
+
+<init>
+
+Window(: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null)
+Parameters
+
+contentWidth
- window content widthcontentHeight
- window content heightisResizable
- determines if the window is resizableisDraggable
- determines if the window is draggablecloseButton
- determines if Close button is visibleclasses
- a set of CSS class namesinit
- an initializer extension function
+
+
+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
+
+afterCreate
+
+protected open fun afterCreate(node: VNode): Unit
+
+
+caption
+
+var caption: String?
+
+
+closeButton
+
+var closeButton: Boolean
+
+
+contentHeight
+
+var contentHeight: CssSize?
+
+
+contentWidth
+
+var contentWidth: CssSize?
+
+
+getChildren
+
+open fun getChildren(): List<Component>
+
+list of children
+
+Window
+open class Window : SimplePanel
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+Window(: String? = null, contentWidth: CssSize? = CssSize(0, UNIT.auto), contentHeight: CssSize? = CssSize(0, UNIT.auto), isResizable: Boolean = true, isDraggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null)
Properties
+
+
+
+
+
+
+
+
+
+
+var caption: String?
+
+
+
+
+
+
+
+var closeButton: Boolean
+
+
+
+
+
+
+
+var contentHeight: CssSize?
+
+
+
+
+
+
+
+var contentWidth: CssSize?
+
+
+
+
+
+
+
+var isDraggable: Boolean
+
+
+
+
+
+
+
+
+var isResizable: Boolean
+Functions
+
+
+
+
+
+
+
+
+
+
+open fun add(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun addAll(children: List<Component>): SimplePanel
+
+
+
+
+
+
+
+open fun afterCreate(node: VNode): Unit
+
+
+
+
+
+
+
+open fun getChildren(): List<Component>
+
+
+
+
+
+
+
+open fun remove(child: Component): SimplePanel
+
+
+
+
+
+
+
+
+open fun removeAll(): SimplePanel
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+fun addInternal(child: Component): SimplePanel
+
+
+
+
+
+
+
+open fun childrenVNodes(): Array<VNode>
+
+
+
+
+
+
+
+
+open fun render(): VNode
+Companion Object Functions
+
+
+
+
+
diff --git a/docs/api/pl.treksoft.kvision.window/-window/is-draggable.html b/docs/api/pl.treksoft.kvision.window/-window/is-draggable.html
new file mode 100644
index 00000000..6432d5fb
--- /dev/null
+++ b/docs/api/pl.treksoft.kvision.window/-window/is-draggable.html
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+fun Container.window(: String? = null, width: CssSize? = CssSize(0, UNIT.auto), height: CssSize? = CssSize(0, UNIT.auto), resizable: Boolean = true, draggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null): Window
+
+
+isDraggable
+
+var isDraggable: Boolean
+
+
Setter
+
Determines if the window is draggable.
+ + + diff --git a/docs/api/pl.treksoft.kvision.window/-window/is-resizable.html b/docs/api/pl.treksoft.kvision.window/-window/is-resizable.html new file mode 100644 index 00000000..3aa1e97a --- /dev/null +++ b/docs/api/pl.treksoft.kvision.window/-window/is-resizable.html @@ -0,0 +1,21 @@ + + + +var isResizable: Boolean
+Determines if the window is resizable.
+Getter
+
Determines if the window is resizable.
+ +Setter
+
Determines if the window is resizable.
+ + + diff --git a/docs/api/pl.treksoft.kvision.window/-window/remove-all.html b/docs/api/pl.treksoft.kvision.window/-window/remove-all.html new file mode 100644 index 00000000..ad12c1d6 --- /dev/null +++ b/docs/api/pl.treksoft.kvision.window/-window/remove-all.html @@ -0,0 +1,18 @@ + + + +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
fun Container.window(: String? = null, width: CssSize? = CssSize(0, UNIT.auto), height: CssSize? = CssSize(0, UNIT.auto), resizable: Boolean = true, draggable: Boolean = true, closeButton: Boolean = false, classes: Set<String> = setOf(), init: Window.() -> Unit = null): Window
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + -- cgit