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, maximizeButton: Boolean = false, minimizeButton: Boolean = false, icon: String? = null, 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 icon: String?
Window icon. |
|
var isDraggable: Boolean
Determines if the window is draggable. |
|
var isResizable: Boolean
Determines if the window is resizable. |
|
var maximizeButton: Boolean
Determines if Maximize button is visible. |
|
var minimizeButton: Boolean
Determines if Maximize button is visible. |
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 close(): Unit
Close the window. |
|
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. |
|
open fun toggleMaximize(): Unit
Maximize or restore the window size. |
|
open fun toggleMinimize(): Unit
Minimize or restore the window size. |
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, maximizeButton: Boolean = false, minimizeButton: Boolean = false, icon: String? = null, classes: Set<String> = setOf(), init: (Window.() -> Unit)? = null): Window
DSL builder extension function. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |