StyleClass

inline class StyleClass(name: String)

alias for CSS class names

Constructors

StyleClass
Link copied to clipboard
js
fun StyleClass(name: String)

Types

Companion
Link copied to clipboard
js
object Companion

Functions

equals
Link copied to clipboard
js
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open override fun hashCode(): Int
plus
Link copied to clipboard
js
infix operator fun plus(other: StyleClass): StyleClass
infix operator fun plus(other: StyleClass?): StyleClass
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

name
Link copied to clipboard
js
val name: String

Extensions

plus
Link copied to clipboard
js
infix operator fun StyleClass?.plus(other: StyleClass): StyleClass
infix operator fun StyleClass?.plus(other: StyleClass?): StyleClass
whenever
Link copied to clipboard
js
inline fun <T> StyleClass.whenever(upstream: Flow<T>, crossinline mapper: suspend (T) -> Boolean): Flow<StyleClass>
function to apply a given class only when a condition is fullfiled.
fun StyleClass.whenever(upstream: Flow<Boolean>): Flow<StyleClass>
function to apply a given class only when a condition is fullfiled.