StyleClass

class StyleClass(name: String)

Alias class for css classes

Constructors

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

Types

Companion
Link copied to clipboard
object Companion

Functions

plus
Link copied to clipboard
infix operator fun plus(other: StyleClass): StyleClass

Properties

name
Link copied to clipboard
val name: String

Extensions

whenever
Link copied to clipboard
inline fun <T> StyleClass.whenever(value: Flow<T>, crossinline predicate: suspend (T) -> Boolean): Flow<StyleClass>
applies a given css class only when a condition is fulfilled.
fun StyleClass.whenever(condition: Flow<Boolean>): Flow<StyleClass>
applies a given css class only when a condition is fulfilled.