From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001
From: Robert Jaros Root container. This container is bound to the specific element in the main HTML file of the project.
It is always the root of components tree and it is responsible for rendering and updating
@@ -18,11 +18,12 @@ Snabbdom virtual DOM.
Root
-class Root : SimplePanel
+(js) class Root : SimplePanel
@@ -31,127 +32,50 @@ Snabbdom virtual DOM.
-
+(js)
+
<init>
+Root(id: String, fixed: Boolean = false, init: (Root.() -> Unit)? = null)
-Root(element: <ERROR CLASS>, fixed: Boolean = false, init: (Root.() -> Unit)? = null)Root(element: HTMLElement, fixed: Boolean = false, init: (Root.() -> Unit)? = null)
val isFirstRoot: Boolean| - - | -
-val children: MutableList<Component> |
-
-
+(js)
+addContextMenu |
fun addContextMenu(contextMenu: Widget): Unit |
-
+(js)
+getRoot |
fun getRoot(): Root? |
-
+(js)
+getSnClass |
-fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. - |
+
-
+(js)
+render |
-fun render(): VNode
Renders current component as a Snabbdom vnode. - |
-
| - - | -
-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. - |
-
| - - | -
-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 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. - |
+
val <T : Widget> T.changeFlow: <ERROR CLASS><T>val <T : Widget> T.changeFlow: Flow<T>
val <T : Widget> T.clickFlow: <ERROR CLASS><T>val <T : Widget> T.clickFlow: Flow<T>
val <T : Widget> T.inputFlow: <ERROR CLASS><T>val <T : Widget> T.inputFlow: Flow<T>
fun Component.addBsBgColor(bsBgColor: BsBgColor): Unitfun Component.addBsBorder(vararg bsBorder: BsBorder): Unitfun Component.addBsClearfix(): Unitfun Component.addBsColor(bsColor: BsColor): Unitfun Component.addBsRounded(vararg bsRounded: BsRounded): Unitfun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold
DSL builder extension function.
-fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold
fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button
DSL builder extension function.
-fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button
fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup
DSL builder extension function.
-fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup
fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas
DSL builder extension function.
-fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas
fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart
DSL builder extension function.
-fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart
fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null): CheckBox
DSL builder extension function.
-fun