kvision / pl.treksoft.kvision.core / Widget / addCssClass

addCssClass

open fun addCssClass(css: String): Widget

Overrides Component.addCssClass

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

Parameters

css - CSS class name

Return
current component

open fun addCssClass(css: Style): Widget

Overrides Component.addCssClass

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

Parameters

css - CSS style object

Return
current component