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 --- .../-radio-group/get-state.html | 15 ++ .../-radio-group/index.html | 267 +++++++++++++++------ .../-radio-group/observers.html | 14 ++ .../-radio-group/subscribe.html | 15 ++ 4 files changed, 243 insertions(+), 68 deletions(-) create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group/get-state.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group/observers.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group/subscribe.html (limited to 'api/pl.treksoft.kvision.form.check/-radio-group') diff --git a/api/pl.treksoft.kvision.form.check/-radio-group/get-state.html b/api/pl.treksoft.kvision.form.check/-radio-group/get-state.html new file mode 100644 index 00000000..5c13827b --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group/get-state.html @@ -0,0 +1,15 @@ + + + +RadioGroup.getState - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroup / getState
+
+

getState

+(js) +open fun getState(): String? +

Get current state.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group/index.html b/api/pl.treksoft.kvision.form.check/-radio-group/index.html index 3443f07d..9381a526 100644 --- a/api/pl.treksoft.kvision.form.check/-radio-group/index.html +++ b/api/pl.treksoft.kvision.form.check/-radio-group/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.check / RadioGroup

RadioGroup

-(js) open class RadioGroup : SimplePanel, StringFormControl +(js) open class RadioGroup : SimplePanel, StringFormControl, ObservableState<String?>

The form field component rendered as a group of HTML input type="radio" elements with the same name attribute.

The radio group can be populated directly from options parameter or manually by adding Radio components to the container.

@@ -94,6 +94,14 @@ (js) +

observers

+ + +val observers: MutableList<(String?) -> Unit> + + + +(js)

options

@@ -180,12 +188,30 @@ (js) +

getState

+ + +

Get current state.

+open fun getState(): String? + + + +(js)

styleForHorizontalFormPanel

Style form control element for horizontal form panel.

open fun styleForHorizontalFormPanel(horizontalRatio: FormHorizontalRatio): Unit + + +(js) +

subscribe

+ + +

Subscribe for the state change notifications.

+open fun subscribe(observer: (String?) -> Unit): () -> Unit +

Extension Properties

@@ -197,6 +223,7 @@

changeFlow

+

Extension property returning Flow for a change event.

val <T : Widget> T.changeFlow: Flow<T> @@ -205,6 +232,7 @@

clickFlow

+

Extension property returning Flow for a click event.

val <T : Widget> T.clickFlow: Flow<T> @@ -213,8 +241,18 @@

inputFlow

+

Extension property returning Flow for an input event.

val <T : Widget> T.inputFlow: Flow<T> + + +(js) +

stateFlow

+ + +

Extension property returning StateFlow for an ObservableState.

+val <S> ObservableState<S>.stateFlow: StateFlow<S> +

Extension Functions

@@ -263,11 +301,20 @@ (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> = setOf(), init: (Bold.() -> Unit)? = null): Bold +fun Container.bold(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String>? = null, className: String? = null, init: (Bold.() -> Unit)? = null): Bold @@ -276,7 +323,7 @@

DSL builder extension function.

-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 +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 @@ -285,7 +332,7 @@

DSL builder extension function.

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

DSL builder extension function.

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

DSL builder extension function.

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

DSL builder extension function.

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

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 @@ -339,7 +386,7 @@

DSL builder extension function.

-fun </