open class Table : SimplePanel
HTML table component.
Table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), : String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null) |
var caption: String?
Table caption. |
|
var headerNames: List<String>?
Table headers names. |
|
var responsive: Boolean
Determines if the table is responsive. |
|
var types: Set<TableType>
Table types. |
open fun add(child: Component): SimplePanel
Adds given component to the current container. |
|
open fun addAll(children: List<Component>): SimplePanel
Adds a list of components to the current container. |
|
fun addHeaderCell(cell: HeaderCell): Table
Adds new header cell to the table. |
|
open fun childrenVNodes(): Array<VNode>
Returns the array of the children Snabbdom vnodes. |
|
open fun getChildren(): List<Component>
Returns a list of children of the current container. |
|
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
open fun remove(child: Component): SimplePanel
Removes given component from the current container. |
|
open fun removeAll(): SimplePanel
Removes all children from the current container. |
|
fun removeHeaderCell(cell: HeaderCell): Table
Removes given header cell from the table. |
|
fun removeHeaderCells(): Table
Removes all header cells from table. |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
fun addInternal(child: Component): SimplePanel
Protected and final method to add given component to the current container. |
fun Container.table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), : String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null): Table
DSL builder extension function. |