open class Div : Tag
Simple component rendered as div.
Div(text: String, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Div.() -> Unit = null) |
var align: Align?
Text align. |
|
var rich: Boolean
Determines if text can contain HTML code. |
|
var text: String?
Text content of the tag. |
|
var type: TAG
Tag type. |
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
fun Container.div(text: String, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Div.() -> Unit = null): Div
DSL builder extension function. |