kvision / pl.treksoft.kvision.table

Package pl.treksoft.kvision.table

Clasess supporting HTML tables.

Types

Cell

open class Cell : Tag

HTML table cell component.

HeaderCell

open class HeaderCell : Tag

HTML table header cell component.

ResponsiveType

enum class ResponsiveType

HTML table responsive types.

Row

open class Row : Tag

HTML table row component.

Scope

enum class Scope

Table

open class Table : SimplePanel

HTML table component.

TableType

enum class TableType

HTML table types.

TheadType

enum class TheadType

HTML table header types.

Functions

cell

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

DSL builder extension function.

headerCell

fun Row.headerCell(content: String? = null, rich: Boolean = false, align: Align? = null, scope: Scope? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null): HeaderCell

DSL builder extension function.

row

fun Table.row(classes: Set<String> = setOf(), init: (Row.() -> Unit)? = null): Row

DSL builder extension function.

table

fun Container.table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsiveType: ResponsiveType? = null, theadType: TheadType? = null, classes: Set<String> = setOf(), init: (Table.() -> Unit)? = null): Table

DSL builder extension function.

thcell

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

DSL builder extension function.