interface Container : Component
Base interface for all containers.
abstract var parent: Component?
Parent of the current component. |
|
abstract var visible: Boolean
Visibility state of the current component. |
abstract fun add(child: Component): Container
Adds given component to the current container. |
|
abstract fun addAll(children: List<Component>): Container
Adds a list of components to the current container. |
|
abstract fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
open operator fun invoke(vararg children: Component): Container
Operator function for adding children in a DSL style. |
|
abstract fun remove(child: Component): Container
Removes given component from the current container. |
|
abstract fun removeAll(): Container
Removes all children from the current container. |
abstract fun addCssClass(css: String): Component
Adds given value to the set of CSS classes generated in html code of current component. |
|
abstract fun addSurroundingCssClass(css: String): Component
Adds given value to the set of CSS classes generated in html code of parent component. |
|
abstract fun getElement(): Node?
Returns DOM element bound to the current component. |
|
abstract fun getElementJQuery(): JQuery?
Returns JQuery element bound to the current component. |
|
abstract fun getElementJQueryD(): dynamic
Returns JQuery element bound to the current component as a dynamic type. |
|
abstract fun removeCssClass(css: String): Component
Removes given value from the set of CSS classes generated in html code of current component. |
|
abstract fun removeSurroundingCssClass(css: String): Component
Removes given value from the set of CSS classes generated in html code of parent component. |
class DataContainer<M : DataComponent, C : Component> : Widget, Container, DataUpdatable
A container class with support for observable data model. |
|
open class SimplePanel : Widget, Container
Basic container class, rendered as a DIV element with all children directly within. |