From 70ed562ae730f65671defed6ed79d08d8126d467 Mon Sep 17 00:00:00 2001
From: Robert Jaros
+
+
+
+ Constructor Overrides SimplePanel.addAll Adds a list of components to the current container.
+ Return Adds new header cell to the table. Return Overrides SimplePanel.add Adds given component to the current container. Return Table caption. Getter Table caption.
+
+<init>
+
+Table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null)
+Parameters
+headerNames - a list of table headers namesresponsive - determines if the table is responsiveclasses - a set of CSS class namesinit - an initializer extension function
+
+
+addAll
+
+open fun addAll(children: List<Component>): SimplePanel
+Parameters
+children - list of child components
+current container
+
+addHeaderCell
+
+fun addHeaderCell(cell: HeaderCell): Table
+Parameters
+
+
+this table
+
+add
+
+open fun add(child: Component): SimplePanel
+Parameters
+
+
+current container
+
+caption
+
+var caption: String?
+
+
Setter
+
Table caption.
+ + + diff --git a/api/pl.treksoft.kvision.table/-table/children-v-nodes.html b/api/pl.treksoft.kvision.table/-table/children-v-nodes.html new file mode 100644 index 00000000..23ec3435 --- /dev/null +++ b/api/pl.treksoft.kvision.table/-table/children-v-nodes.html @@ -0,0 +1,18 @@ + + + +protected open fun childrenVNodes(): Array<VNode>
+Overrides SimplePanel.childrenVNodes
+Returns the array of the children Snabbdom vnodes.
+Return
+array of children vnodes
open fun getChildren(): List<Component>
+Overrides SimplePanel.getChildren
+Returns a list of children of the current container.
+Return
+list of children
protected open fun getSnClass(): List<StringBoolPair>
+Overrides Widget.getSnClass
+Returns list of CSS class names for current widget in the form of a List.
+Return
+list of CSS class names
var headerNames: List<String>?
+Table headers names.
+Getter
+
Table headers names.
+ +Setter
+
Table headers names.
+ + + diff --git a/api/pl.treksoft.kvision.table/-table/index.html b/api/pl.treksoft.kvision.table/-table/index.html new file mode 100644 index 00000000..ab632080 --- /dev/null +++ b/api/pl.treksoft.kvision.table/-table/index.html @@ -0,0 +1,199 @@ + + + +open class Table : SimplePanel
+HTML table component.
+| + + | +
+Table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: 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(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null): Table
+DSL builder extension function. + |
+
open fun removeAll(): SimplePanel
+Overrides SimplePanel.removeAll
+Removes all children from the current container.
+Return
+current container
fun removeHeaderCell(cell: HeaderCell): Table
+Removes given header cell from the table.
+Return
+this table
fun removeHeaderCells(): Table
+Removes all header cells from table.
+Return
+this table
open fun remove(child: Component): SimplePanel
+Overrides SimplePanel.remove
+Removes given component from the current container.
+Return
+current container
protected open fun render(): VNode
+Overrides SimplePanel.render
+Renders current component as a Snabbdom vnode.
+Return
+Snabbdom vnode
var responsive: Boolean
+Determines if the table is responsive.
+Getter
+
Determines if the table is responsive.
+ +Setter
+
Determines if the table is responsive.
+ + + diff --git a/api/pl.treksoft.kvision.table/-table/table.html b/api/pl.treksoft.kvision.table/-table/table.html new file mode 100644 index 00000000..3fe2c07e --- /dev/null +++ b/api/pl.treksoft.kvision.table/-table/table.html @@ -0,0 +1,16 @@ + + + +fun Container.table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: Table.() -> Unit = null): Table
+DSL builder extension function.
+It takes the same parameters as the constructor of the built component.
+ + diff --git a/api/pl.treksoft.kvision.table/-table/types.html b/api/pl.treksoft.kvision.table/-table/types.html new file mode 100644 index 00000000..70588e53 --- /dev/null +++ b/api/pl.treksoft.kvision.table/-table/types.html @@ -0,0 +1,21 @@ + + + +var types: Set<TableType>
+Table types.
+Getter
+
Table types.
+ +Setter
+
Table types.
+ + + -- cgit