kvision / pl.treksoft.kvision.table / Cell

Cell

open class Cell : Tag

HTML table cell component.

Constructors

<init>

Cell(text: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Cell.() -> Unit = null)

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

cell

fun Row.cell(text: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Cell.() -> Unit = null): Cell

DSL builder extension function.