From bfd5aa358e141d6c86d476d8bb66b104a80a3b96 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 21 May 2020 00:13:50 +0200 Subject: API documentation for KVision 3.10.0 --- api/pl.treksoft.kvision.html/-button/-init-.html | 8 +- api/pl.treksoft.kvision.html/-button/index.html | 907 ++++++++++++++++++++- .../-button/label-first.html | 21 + .../-button/separator.html | 21 + 4 files changed, 935 insertions(+), 22 deletions(-) create mode 100644 api/pl.treksoft.kvision.html/-button/label-first.html create mode 100644 api/pl.treksoft.kvision.html/-button/separator.html (limited to 'api/pl.treksoft.kvision.html/-button') diff --git a/api/pl.treksoft.kvision.html/-button/-init-.html b/api/pl.treksoft.kvision.html/-button/-init-.html index 2ccbb29a..337ef488 100644 --- a/api/pl.treksoft.kvision.html/-button/-init-.html +++ b/api/pl.treksoft.kvision.html/-button/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.html / Button / <init>

<init>

-(js) -Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf()) +(js) +Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, separator: String? = null, labelFirst: Boolean = true, classes: Set<String> = setOf())

Parameters

text - button label

@@ -19,6 +19,10 @@ style - button style

disabled - button state

+

+separator - a separator between label and icon/image (defaults to space)

+

+labelFirst - determines if the label is put before children elements (defaults to true)

classes - a set of CSS class names

Constructor
diff --git a/api/pl.treksoft.kvision.html/-button/index.html b/api/pl.treksoft.kvision.html/-button/index.html index 6c8e491f..0f87a42c 100644 --- a/api/pl.treksoft.kvision.html/-button/index.html +++ b/api/pl.treksoft.kvision.html/-button/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.html / Button

Button

-(js) open class Button : Widget +(js) open class Button : SimplePanel

Button component.

Constructors

@@ -19,7 +19,7 @@

<init>

+Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, separator: String? = null, labelFirst: Boolean = true, classes: Set<String> = setOf())
-Button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf())
@@ -65,6 +65,24 @@ (js) +

labelFirst

+ + +

Determines if the label is put before children elements.

+var labelFirst: Boolean + + + +(js) +

separator

+ + +

A separator between label and icon/image.

+var separator: String? + + + +(js)

size

@@ -168,6 +186,7 @@

changeFlow

+

Extension property returning Flow for a change event.

val <T : Widget> T.changeFlow: Flow<T> @@ -176,6 +195,7 @@

clickFlow

+

Extension property returning Flow for a click event.

val <T : Widget> T.clickFlow: Flow<T> @@ -184,6 +204,7 @@

inputFlow

+

Extension property returning Flow for an input event.

val <T : Widget> T.inputFlow: Flow<T> @@ -234,11 +255,148 @@ (js) +

bind

+ + +

An extension function which binds the widget to the observable state.

+fun <S, W : Widget> W.bind(observableState: ObservableState<S>, factory: W.(S) -> Unit): W + + + +(js) +

bold

+ + +

DSL builder extension function.

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

button

+ + +

DSL builder extension function.

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

buttonGroup

+ + +

DSL builder extension function.

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

canvas

+ + +

DSL builder extension function.

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

chart

+ + +

DSL builder extension function.

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

checkBox

+ + +

DSL builder extension function.

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

checkBoxInput

+ + +

DSL builder extension function.

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

contextMenu

DSL builder extension function.

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

customTag

+ + +

DSL builder extension function.

+fun Container.customTag(elementName: String, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String>? = null, className: String? = null, attributes: Map<String, String> = mapOf(), init: (CustomTag.() -> Unit)