Table

open class Table(headerNames: List<String>?, types: Set<TableType>, caption: String?, responsiveType: ResponsiveType?, tableColor: TableColor?, theadColor: TableColor?, className: String?, init: Table.() -> Unit?)

HTML table component.

Parameters

headerNames

a list of table headers names

types

a set of table types

caption

table caption

responsiveType

determines if the table is responsive

tableColor

table color variant

theadColor

table header color variant

className

CSS class names

init

an initializer extension function

Constructors

Table
Link copied to clipboard
fun Table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsiveType: ResponsiveType? = null, tableColor: TableColor? = null, theadColor: TableColor? = null, className: String? = null, init: Table.() -> Unit? = null)

Functions

add
Link copied to clipboard
open fun add(child: <ERROR CLASS>): Table
open fun add(position: Int, child: <ERROR CLASS>): Table
addAll
Link copied to clipboard
open fun addAll(children: List<<ERROR CLASS>>): Table
addHeaderCell
Link copied to clipboard
fun addHeaderCell(cell: HeaderCell): Table

Adds new header cell to the table.

buildClassSet
Link copied to clipboard
open fun buildClassSet(classSetBuilder: <ERROR CLASS>)
childrenVNodes
Link copied to clipboard
open fun childrenVNodes(): Array<<ERROR CLASS>>
dispose
Link copied to clipboard
open fun dispose()
disposeAll
Link copied to clipboard
open fun disposeAll(): <ERROR CLASS>
getChildren
Link copied to clipboard
open fun getChildren(): List<<ERROR CLASS>>
remove
Link copied to clipboard
open fun remove(child: <ERROR CLASS>): Table
removeAll
Link copied to clipboard
open fun removeAll(): Table
removeAt
Link copied to clipboard
open fun removeAt(position: Int): Table
removeHeaderCell
Link copied to clipboard
fun removeHeaderCell(cell: HeaderCell): Table

Removes given header cell from the table.

removeHeaderCells
Link copied to clipboard
fun removeHeaderCells(): Table

Removes all header cells from table.

render
Link copied to clipboard
open fun render(): <ERROR CLASS>

Properties

caption
Link copied to clipboard
var caption: <ERROR CLASS>

Table caption.

headerNames
Link copied to clipboard
var headerNames: <ERROR CLASS>

Table headers names.

responsiveType
Link copied to clipboard
var responsiveType: <ERROR CLASS>

Determines if the table is responsive.

tableColor
Link copied to clipboard
var tableColor: <ERROR CLASS>

Table color variant.

theadColor
Link copied to clipboard
val theadColor: TableColor? = null
types
Link copied to clipboard
var types: <ERROR CLASS>

Table types.

Extensions

headerCell
Link copied to clipboard
fun Table.headerCell(content: String? = null, rich: Boolean = false, align: <ERROR CLASS>? = null, scope: Scope? = null, className: String? = null, init: HeaderCell.() -> Unit? = null): HeaderCell

DSL builder extension function.

row
Link copied to clipboard
fun Table.row(className: String? = null, init: Row.() -> Unit? = null): Row

DSL builder extension function.