kvision / pl.treksoft.kvision.html / Label

Label

open class Label : Tag

Simple label component rendered as span.

Constructors

<init>

Label(text: String, rich: Boolean = false)

Inherited Properties

align

var align: ALIGN?

Text align.

rich

var rich: Boolean

Determines if text can contain HTML code.

text

var text: String?

Text content of the tag.

type

var type: TAG

Tag type.

Inherited Functions

getSnClass

open fun getSnClass(): List<StringBoolPair>

Returns list of CSS class names for current widget in the form of a List.

render

open fun render(): VNode

Renders current component as a Snabbdom vnode.

Companion Object Functions

label

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

DSL builder extension function.