open class Window : SimplePanel
Floating window container.
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) |
var caption: String?
Window caption text. |
|
var closeButton: Boolean
Determines if Close button is visible. |
|
var contentHeight: CssSize?
Window content height. |
|
var contentOverflow: Overflow?
Window content height. |
|
var contentWidth: CssSize?
Window content width. |
|
var isDraggable: Boolean
Determines if the window is draggable. |
|
var isResizable: Boolean
Determines if the window is resizable. |
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 afterCreate(node: VNode): Unit
Method called after creating Snabbdom vnode. |
|
open fun afterDestroy(): Unit
Method called after destroying Snabbdom vnode. |
|
open fun focus(): Unit
Makes the current window focused. |
|
open fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
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 toFront(): Unit
Moves the current window to the front. |
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. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
fun Container.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): Window
DSL builder extension function. |