From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- api/pl.treksoft.kvision.core/-container/index.html | 741 ++++++++------------- 1 file changed, 294 insertions(+), 447 deletions(-) (limited to 'api/pl.treksoft.kvision.core/-container/index.html') diff --git a/api/pl.treksoft.kvision.core/-container/index.html b/api/pl.treksoft.kvision.core/-container/index.html index ba622262..01b545ed 100644 --- a/api/pl.treksoft.kvision.core/-container/index.html +++ b/api/pl.treksoft.kvision.core/-container/index.html @@ -8,218 +8,64 @@ kvision / pl.treksoft.kvision.core / Container

Container

-interface Container : Component +(js) interface Container : Component

Base interface for all containers.

-

Inherited Properties

- - - - - - - - - - - -
-

parent

-
-abstract var parent: Container? -

Parent of the current component.

-
-

visible

-
-abstract var visible: Boolean -

Visibility state of the current component.

-

Functions

+abstract fun add(child: Component): Container +abstract fun addAll(children: List<Component>): Container +abstract fun getChildren(): List<Component> +open operator fun invoke(vararg children: Component): Container +abstract fun remove(child: Component): Container - - -
-

add

+(js) +

add

-abstract fun add(child: Component): Container

Adds given component to the current container.

-
-

addAll

+(js) +

addAll

-abstract fun addAll(children: List<Component>): Container

Adds a list of components to the current container.

-
-

getChildren

+(js) +

getChildren

-abstract fun getChildren(): List<Component>

Returns a list of children of the current container.

-
-

invoke

+(js) +

invoke

-open operator fun invoke(vararg children: Component): Container

Operator function for adding children in a DSL style.

-
-

remove

+(js) +

remove

-abstract fun remove(child: Component): Container

Removes given component from the current container.

-
-

removeAll

+(js) +

removeAll

-abstract fun removeAll(): Container

Removes all children from the current container.

-
-

Inherited Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +abstract fun removeAll(): Container
-

addCssClass

-
-abstract fun addCssClass(css: String): Component -

Adds given value to the set of CSS classes generated in html code of current component.

-
-

addCssStyle

-
-abstract fun addCssStyle(css: Style): Component -

Adds given style object to the set of CSS classes generated in html code of current component.

-
-

addSurroundingCssClass

-
-abstract fun addSurroundingCssClass(css: String): Component -

Adds given value to the set of CSS classes generated in html code of parent component.

-
-

addSurroundingCssStyle

-
-abstract fun addSurroundingCssStyle(css: Style): Component -

Adds given style object to the set of CSS classes generated in html code of parent component.

-
-

getAttribute

-
-abstract fun getAttribute(name: String): String? -

Returns the value of an additional attribute.

-
-

getElement

-
-abstract fun getElement(): Node? -

Returns DOM element bound to the current component.

-
-

getElementJQuery

-
-abstract fun getElementJQuery(): JQuery? -

Returns JQuery element bound to the current component.

-
-

getElementJQueryD

-
-abstract fun getElementJQueryD(): dynamic -

Returns JQuery element bound to the current component as a dynamic type.

-
-

removeAttribute

-
-abstract fun removeAttribute(name: String): Component -

Removes the value of additional attribute.

-
-

removeCssClass

-
-abstract fun removeCssClass(css: String): Component -

Removes given value from the set of CSS classes generated in html code of current component.

-
-

removeCssStyle

-
-abstract fun removeCssStyle(css: Style): Component -

Removes given style object from the set of CSS classes generated in html code of current component.

-
-

removeSurroundingCssClass

-
-abstract fun removeSurroundingCssClass(css: String): Component -

Removes given value from the set of CSS classes generated in html code of parent component.

-
-

removeSurroundingCssStyle

-
-abstract fun removeSurroundingCssStyle(css: Style): Component -

Removes given style object from the set of CSS classes generated in html code of parent component.

-
-

setAttribute

-
-abstract fun setAttribute(name: String, value: String): Component -

Sets the value of additional attribute.

-
@@ -228,826 +74,827 @@ -

addBsBgColor

+(js) +

addBsBgColor

fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit -

addBsBorder

+(js) +

addBsBorder

fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit -

addBsClearfix

+(js) +

addBsClearfix

fun Component.addBsClearfix(): Unit -

addBsColor

+(js) +

addBsColor

fun Component.addBsColor(bsColor: BsColor): Unit -

addBsRounded

+(js) +

addBsRounded

fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit -

bold

+(js) +

bold

-fun 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 -

button

+(js) +

button

-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 -

buttonGroup

+(js) +

buttonGroup

-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 -

canvas

+(js) +

canvas

-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 -

chart

+(js) +

chart

-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 -

checkBox

+(js) +

checkBox

-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 Container.checkBox(value: Boolean = false,