kvision / pl.treksoft.kvision.core / Style

Style

(js) open class Style : StyledComponent

CSS style object.

Types

(js)

RefreshDelegate

inner class RefreshDelegate<T>
(js)

RefreshDelegateProvider

inner class RefreshDelegateProvider<T>

Constructors

(js)

<init>

Style(className: String? = null, parentStyle: Style? = null, init: (Style.() -> Unit)? = null)

Properties

(js)

className

The name of the CSS class.

var className: String

Functions

(js)

refreshOnUpdate

fun <T> refreshOnUpdate(refreshFunction: (T) -> Unit = { this.refresh() }): RefreshDelegateProvider<T>
fun <T> refreshOnUpdate(initialValue: T, refreshFunction: (T) -> Unit = { this.refresh() }): RefreshDelegateProvider<T>

Extension Functions

(js)

style

DSL builder extension function for cascading styles.

fun Style.style(className: String? = null, init: (Style.() -> Unit)? = null): Style