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/-image/-init-.html | 2 +- api/pl.treksoft.kvision.html/-image/index.html | 29 ++++++++++++++++++++++--- api/pl.treksoft.kvision.html/-image/src.html | 2 +- 3 files changed, 28 insertions(+), 5 deletions(-) (limited to 'api/pl.treksoft.kvision.html/-image') diff --git a/api/pl.treksoft.kvision.html/-image/-init-.html b/api/pl.treksoft.kvision.html/-image/-init-.html index f6dbe311..0c8e4ce2 100644 --- a/api/pl.treksoft.kvision.html/-image/-init-.html +++ b/api/pl.treksoft.kvision.html/-image/-init-.html @@ -9,7 +9,7 @@

<init>

(js) -Image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: ImageShape? = null, centered: Boolean = false, classes: Set<String> = setOf()) +Image(src: ResString?, alt: String? = null, responsive: Boolean = false, shape: ImageShape? = null, centered: Boolean = false, classes: Set<String> = setOf())

Parameters

src - image URL

diff --git a/api/pl.treksoft.kvision.html/-image/index.html b/api/pl.treksoft.kvision.html/-image/index.html index cf3b6bba..c93a278d 100644 --- a/api/pl.treksoft.kvision.html/-image/index.html +++ b/api/pl.treksoft.kvision.html/-image/index.html @@ -19,7 +19,7 @@

<init>

-Image(src: ResString, alt: String? = null, responsive: Boolean = false, shape: ImageShape? = null, centered: Boolean = false, classes: Set<String> = setOf()) +Image(src: ResString?, alt: String? = null, responsive: Boolean = false, shape: ImageShape? = null, centered: Boolean = false, classes: Set<String> = setOf()) @@ -69,7 +69,7 @@

URL of the image.

-var src: ResString +var src: ResString? @@ -114,6 +114,7 @@

changeFlow

+

Extension property returning Flow for a change event.

val <T : Widget> T.changeFlow: Flow<T> @@ -122,6 +123,7 @@

clickFlow

+

Extension property returning Flow for a click event.

val <T : Widget> T.clickFlow: Flow<T> @@ -130,6 +132,7 @@

inputFlow

+

Extension property returning Flow for an input event.

val <T : Widget> T.inputFlow: Flow<T> @@ -180,11 +183,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 @@ -192,14 +204,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.html/-image/src.html b/api/pl.treksoft.kvision.html/-image/src.html index 6fe14a41..f9fce0d6 100644 --- a/api/pl.treksoft.kvision.html/-image/src.html +++ b/api/pl.treksoft.kvision.html/-image/src.html @@ -9,7 +9,7 @@

src

(js) -var src: ResString +var src: ResString?

URL of the image.

Getter

URL of the image.

-- cgit