From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-header-cell/-init-.html | 4 +- .../-header-cell/header-cell.html | 16 - .../-header-cell/index.html | 774 ++++++++++++++++++++- 3 files changed, 763 insertions(+), 31 deletions(-) delete mode 100644 api/pl.treksoft.kvision.table/-header-cell/header-cell.html (limited to 'api/pl.treksoft.kvision.table/-header-cell') diff --git a/api/pl.treksoft.kvision.table/-header-cell/-init-.html b/api/pl.treksoft.kvision.table/-header-cell/-init-.html index b39dc65e..983931eb 100644 --- a/api/pl.treksoft.kvision.table/-header-cell/-init-.html +++ b/api/pl.treksoft.kvision.table/-header-cell/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.table / HeaderCell / <init>

<init>

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

Parameters

content - text content of the cell

diff --git a/api/pl.treksoft.kvision.table/-header-cell/header-cell.html b/api/pl.treksoft.kvision.table/-header-cell/header-cell.html deleted file mode 100644 index 0454bdfa..00000000 --- a/api/pl.treksoft.kvision.table/-header-cell/header-cell.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -HeaderCell.headerCell - kvision - - - -kvision / pl.treksoft.kvision.table / HeaderCell / headerCell
-
-

headerCell

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

DSL builder extension function.

-

It takes the same parameters as the constructor of the built component.

- - diff --git a/api/pl.treksoft.kvision.table/-header-cell/index.html b/api/pl.treksoft.kvision.table/-header-cell/index.html index d3f66c6b..93b64bd2 100644 --- a/api/pl.treksoft.kvision.table/-header-cell/index.html +++ b/api/pl.treksoft.kvision.table/-header-cell/index.html @@ -18,7 +18,7 @@

<init>

-HeaderCell(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null) +HeaderCell(content: String? = null, rich: Boolean = false, align: Align? = null, scope: Scope? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null) @@ -111,23 +111,116 @@ -

Companion Object Functions

+

Extension Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
-

headerCell

+

addBsBgColor

+
+fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit
+

addBsBorder

+
+fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit
+

addBsClearfix

+
+fun Component.addBsClearfix(): Unit
+

addBsColor

-fun Row.headerCell(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (HeaderCell.() -> Unit)? = null): HeaderCell +fun Component.addBsColor(bsColor: BsColor): Unit
+

addBsRounded

+
+fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit
+

bold

+
+fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: (Bold.() -> Unit)? = null): Bold +

DSL builder extension function.

+
+

button

+
+fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button +

DSL builder extension function.

+
+

buttonGroup

+
+fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(), init: (ButtonGroup.() -> Unit)? = null): ButtonGroup +

DSL builder extension function.

+
+

canvas

+
+fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas +

DSL builder extension function.

+
+

chart

+
+fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart +

DSL builder extension function.

+
+

checkBox

+
+fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null): CheckBox +

DSL builder extension function.

+
+

checkBoxInput

+
+fun Container.checkBoxInput(value: Boolean = false, classes: Set<String> = setOf(), init: (CheckInput.() -> Unit)? = null): CheckBoxInput +

DSL builder extension function.

+
+

contextMenu

+
+fun Widget.contextMenu(fixedPosition: Boolean = false, classes: Set<String> = setOf(), init: (ContextMenu.() -> Unit)? = null): ContextMenu

DSL builder extension function.

-

Extension Functions

- -

createInstance

@@ -139,12 +232,667 @@
-

setData

+

dataContainer

-fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
-fun <K : Any> Template.setData(obj: K): Unit -

Extension function to set serializable object as a template data.

+fun <M, C : Component, CONT : Container> Container.dataContainer(model: MutableList<M>, factory: (M, Int, MutableList<M>) -> C, container: CONT, containerAdd: (CONT.(C,