kvision / pl.treksoft.kvision.html / Label

Label

open class Label : Span
Deprecated: Use Span class instead.

Simple label component rendered as span.

Constructors

<init>

Label(content: String? = null, rich: Boolean = false)

Companion Object Functions

label

fun Container.label(content: String? = null, rich: Boolean = false, init: (Label.() -> Unit)? = null): Label

DSL builder extension function.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

setData

fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
fun <K : Any> Template.setData(obj: K): Unit

Extension function to set serializable object as a template data.