kvision / pl.treksoft.kvision.core / Component

Component

(js) interface Component

Base interface for all components.

Properties

(js)

parent

Parent of the current component.

abstract var parent: Container?
(js)

visible

Visibility state of the current component.

abstract var visible: Boolean

Functions

(js)

addCssClass

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

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

addCssStyle

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

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

addSurroundingCssClass

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

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

addSurroundingCssStyle

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

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

getAttribute

Returns the value of an additional attribute.

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

getElement

Returns DOM element bound to the current component.

abstract fun getElement(): Node?
(js)

getElementJQuery

Returns JQuery element bound to the current component.

abstract fun getElementJQuery(): JQuery?
(js)

getElementJQueryD

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

abstract fun getElementJQueryD(): dynamic
(js)

removeAttribute

Removes the value of additional attribute.

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

removeCssClass

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

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

removeCssStyle

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

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

removeSurroundingCssClass

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

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

removeSurroundingCssStyle

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

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

setAttribute

Sets the value of additional attribute.

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

Extension Functions

(js)

addBsBgColor

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

addBsBorder

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

addBsClearfix

fun Component.addBsClearfix(): Unit
(js)

addBsColor

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

addBsRounded

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

removeBsBgColor

fun Component.removeBsBgColor(bsBgColor: BsBgColor): Unit
(js)

removeBsBorder

fun Component.removeBsBorder(vararg bsBorder: BsBorder): Unit
(js)

removeBsClearfix

fun Component.removeBsClearfix(): Unit
(js)

removeBsColor

fun Component.removeBsColor(bsColor: BsColor): Unit
(js)

removeBsRounded

fun Component.removeBsRounded(vararg bsRounded: BsRounded): Unit

Inheritors

(js)

Container

Base interface for all containers.

interface Container : Component
(js)

FormControl

Base interface of a form control.

interface FormControl : Component
(js)

FormInput

interface FormInput : Component
(js)

Widget

Base widget class. The parent of all component classes.

open class Widget : StyledComponent, Component