kvision / pl.treksoft.kvision.core / style

style

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

DSL builder extension function.

It takes the same parameters as the constructor of the built component.

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

DSL builder extension function for cascading styles.

It takes the same parameters as the constructor of the built component.