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 --- api/pl.treksoft.kvision.table/-table/-init-.html | 8 +- api/pl.treksoft.kvision.table/-table/index.html | 791 ++++++++++++++++++++- .../-table/responsive-type.html | 21 + .../-table/responsive.html | 21 - api/pl.treksoft.kvision.table/-table/table.html | 16 - 5 files changed, 805 insertions(+), 52 deletions(-) create mode 100644 api/pl.treksoft.kvision.table/-table/responsive-type.html delete mode 100644 api/pl.treksoft.kvision.table/-table/responsive.html delete mode 100644 api/pl.treksoft.kvision.table/-table/table.html (limited to 'api/pl.treksoft.kvision.table/-table') diff --git a/api/pl.treksoft.kvision.table/-table/-init-.html b/api/pl.treksoft.kvision.table/-table/-init-.html index f4334fa5..b77b0b38 100644 --- a/api/pl.treksoft.kvision.table/-table/-init-.html +++ b/api/pl.treksoft.kvision.table/-table/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.table / Table / <init>

<init>

- -Table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: (Table.() -> Unit)? = null) + +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)

Parameters

headerNames - a list of table headers names

@@ -17,8 +17,8 @@ types - a set of table types

caption - table caption

-

-responsive - determines if the table is responsive

+

+responsiveType - determines if the table is responsive

classes - a set of CSS class names

diff --git a/api/pl.treksoft.kvision.table/-table/index.html b/api/pl.treksoft.kvision.table/-table/index.html index 9c8adb66..3d129d74 100644 --- a/api/pl.treksoft.kvision.table/-table/index.html +++ b/api/pl.treksoft.kvision.table/-table/index.html @@ -18,7 +18,7 @@

<init>

-Table(headerNames: List<String>? = null, types: Set<TableType> = setOf(), caption: String? = null, responsive: Boolean = false, classes: Set<String> = setOf(), init: (Table.() -> Unit)? = null) +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) @@ -45,10 +45,10 @@ -

responsive

+

responsiveType

-var responsive: Boolean +var responsiveType: ResponsiveType?

Determines if the table is responsive.

@@ -63,6 +63,18 @@ +

Inherited Properties

+ + + + + + + +
+

children

+
+val children: MutableList<Component>

Functions

@@ -181,23 +193,116 @@
-

Companion Object Functions

+

Extension Functions

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

table

+

addBsBgColor

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

addBsBorder

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

addBsClearfix

+
+fun Component.addBsClearfix(): Unit
+

addBsColor

+
+fun Component.addBsColor(bsColor: BsColor): Unit
+

addBsRounded

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

bold

-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 +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

@@ -207,6 +312,670 @@

Helper function for creating JavaScript objects from dynamic constructors.

+

dataContainer

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