addClass
Deprecated
Warning since 1.4
Error since 1.6
Hidden since 2.1
This API is moved to another package, use 'kotlinx.dom.addClass' instead.
Replace with
import kotlinx.dom.addClass
Content copied to clipboard
this.addClass(cssClasses)
Content copied to clipboard
Adds CSS class to element. Has no effect if all specified classes are already in class attribute of the element
Since Kotlin
1.1Return
true if at least one class has been added