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.chart/-chart/index.html | 25 ++++++++++++++++++++++++- api/pl.treksoft.kvision.chart/chart.html | 4 ++-- api/pl.treksoft.kvision.chart/index.html | 2 +- 3 files changed, 27 insertions(+), 4 deletions(-) (limited to 'api/pl.treksoft.kvision.chart') diff --git a/api/pl.treksoft.kvision.chart/-chart/index.html b/api/pl.treksoft.kvision.chart/-chart/index.html index e5240f0a..f2ccaabc 100644 --- a/api/pl.treksoft.kvision.chart/-chart/index.html +++ b/api/pl.treksoft.kvision.chart/-chart/index.html @@ -137,6 +137,7 @@

changeFlow

+

Extension property returning Flow for a change event.

val <T : Widget> T.changeFlow: Flow<T> @@ -145,6 +146,7 @@

clickFlow

+

Extension property returning Flow for a click event.

val <T : Widget> T.clickFlow: Flow<T> @@ -153,6 +155,7 @@

inputFlow

+

Extension property returning Flow for an input event.

val <T : Widget> T.inputFlow: Flow<T> @@ -203,11 +206,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)

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 @@ -215,14 +227,25 @@

eventFlow

+

Extension property returning Flow<Pair<Widget, Event>> for a given event

fun <T : Widget> T.eventFlow(event: String): Flow<Pair<T, Event>> (js) +

onClick

+ + +

An extension function for defining on click event handlers.

+fun <T : Widget> T.onClick(handler: T.(MouseEvent) -> Unit): Int + + + +(js)

onEvent

+

An extension function for defining event handlers.

fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int diff --git a/api/pl.treksoft.kvision.chart/chart.html b/api/pl.treksoft.kvision.chart/chart.html index a4eae8c9..36c7508b 100644 --- a/api/pl.treksoft.kvision.chart/chart.html +++ b/api/pl.treksoft.kvision.chart/chart.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.chart / chart

chart

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

DSL builder extension function.

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

diff --git a/api/pl.treksoft.kvision.chart/index.html b/api/pl.treksoft.kvision.chart/index.html index c100fa24..4909b46c 100644 --- a/api/pl.treksoft.kvision.chart/index.html +++ b/api/pl.treksoft.kvision.chart/index.html @@ -312,7 +312,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 -- cgit