tornadofx / tornadofx / addClass

addClass

fun <T : Node> T.addClass(vararg cssClass: CssRule): <ERROR CLASS>

Add one or more type safe css classes to this Node. Pseudo classes are also supported.

fun <T : Tab> T.addClass(vararg cssClass: CssRule): <ERROR CLASS>

Add one or more type safe css classes to this Tab. Pseudo classes are also supported.

fun <T : Node> T.addClass(vararg className: String): <ERROR CLASS>
fun <T : Tab> T.addClass(vararg className: String): <ERROR CLASS>