text

fun text(value: String): Element

Set the text of this element to value. Eg. h1().text("Hello World") will create a h1 element and set its text as follows: <h1>Hello World</h1>.

fun text(text: KVal<String>): Element

Set the text of this element to an KVal value. If the text in the KVal changes the text of this element will update automatically.

var text: KVar<String>