From 4ffe1bee99a55e985bb71dacff3839263cb4316f Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 3 Mar 2020 10:53:33 +0100 Subject: API Documentation for KVision 3.0.0 --- api/pl.treksoft.kvision.core/-widget/index.html | 66 ++++++++++++++++++++-- .../-widget/remove-event-listener.html | 20 +++++++ .../-widget/set-event-listener.html | 25 +------- 3 files changed, 84 insertions(+), 27 deletions(-) create mode 100644 api/pl.treksoft.kvision.core/-widget/remove-event-listener.html (limited to 'api/pl.treksoft.kvision.core/-widget') diff --git a/api/pl.treksoft.kvision.core/-widget/index.html b/api/pl.treksoft.kvision.core/-widget/index.html index ab5fac58..c555469a 100644 --- a/api/pl.treksoft.kvision.core/-widget/index.html +++ b/api/pl.treksoft.kvision.core/-widget/index.html @@ -258,6 +258,15 @@ +

cursor

+ + +open var cursor: Cursor? +

CSS cursor shape over the current component.

+ + + +

display

@@ -935,6 +944,15 @@ +

removeEventListener

+ + +open fun removeEventListener(id: Int): Widget +

Removes event listener from current widget.

+ + + +

removeEventListeners

@@ -1013,10 +1031,8 @@

setEventListener

-open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget +open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int

Sets an event listener for current widget, keeping the actual type of component.

-open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget -

Sets an event listener for current widget.

@@ -1094,6 +1110,32 @@ +

Extension Properties

+ + + + + + + + + + + + + + + +
+

changeFlow

+
+val <T : Widget> T.changeFlow: <ERROR CLASS><T>
+

clickFlow

+
+val <T : Widget> T.clickFlow: <ERROR CLASS><T>
+

inputFlow

+
+val <T : Widget> T.inputFlow: <ERROR CLASS><T>

Extension Functions

@@ -1152,10 +1194,17 @@ + + + + +fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int + + + +
+

eventFlow

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

onEvent

-fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget
@@ -1298,6 +1347,15 @@
+

Maps

+
+open class Maps : Widget +

Maps component.

+

MaximizeIcon

diff --git a/api/pl.treksoft.kvision.core/-widget/remove-event-listener.html b/api/pl.treksoft.kvision.core/-widget/remove-event-listener.html new file mode 100644 index 00000000..dfff40fe --- /dev/null +++ b/api/pl.treksoft.kvision.core/-widget/remove-event-listener.html @@ -0,0 +1,20 @@ + + + +Widget.removeEventListener - kvision + + + +kvision / pl.treksoft.kvision.core / Widget / removeEventListener
+
+

removeEventListener

+ +open fun removeEventListener(id: Int): Widget +

Removes event listener from current widget.

+

Parameters

+

+id - the id of the handler returned by onEvent

+

Return
+current widget

+ + diff --git a/api/pl.treksoft.kvision.core/-widget/set-event-listener.html b/api/pl.treksoft.kvision.core/-widget/set-event-listener.html index fa9feb9f..b453a8df 100644 --- a/api/pl.treksoft.kvision.core/-widget/set-event-listener.html +++ b/api/pl.treksoft.kvision.core/-widget/set-event-listener.html @@ -9,7 +9,7 @@

setEventListener

-open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget +open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Int

Sets an event listener for current widget, keeping the actual type of component.

Parameters

@@ -17,7 +17,7 @@

block - event handler

Return
-

current widget

+

id of the handler

Example:

@@ -29,26 +29,5 @@ // self is of type Button here } }

- -open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
-Deprecated: Use onEvent extension function instead.
-
-

Sets an event listener for current widget.

-

Parameters

-

-block - event handler

-

Return
-

current widget

- - -

Example:

- - -
    button.setEventListener {
-        dblclick = {
-            Alert.show("Button double clicked!")
-            // self is of type Widget here
-        }
-    }

-- cgit