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 --- .../-check-box/index.html | 59 ++++++++++++++++++++-- .../-check-box/remove-event-listener.html | 21 ++++++++ .../-check-box/set-event-listener.html | 27 +--------- 3 files changed, 77 insertions(+), 30 deletions(-) create mode 100644 api/pl.treksoft.kvision.form.check/-check-box/remove-event-listener.html (limited to 'api/pl.treksoft.kvision.form.check/-check-box') diff --git a/api/pl.treksoft.kvision.form.check/-check-box/index.html b/api/pl.treksoft.kvision.form.check/-check-box/index.html index 1081a10c..d132581a 100644 --- a/api/pl.treksoft.kvision.form.check/-check-box/index.html +++ b/api/pl.treksoft.kvision.form.check/-check-box/index.html @@ -170,6 +170,15 @@ +

removeEventListener

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

Removes event listener from current widget.

+ + + +

removeEventListeners

@@ -182,10 +191,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.

@@ -321,6 +328,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

@@ -498,6 +531,13 @@ + + + + + + + + @@ -690,7 +739,7 @@

onEvent

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

eventFlow

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

fieldLabel

@@ -678,10 +718,19 @@
+

maps

+
+fun Container.maps(lat: Number, lng: Number, zoom: Number, classes: Set<String> = setOf(), init: (Maps.() -> Unit)? = null): Maps +

DSL builder extension function.

+

navbar

-fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor = NavbarColor.LIGHT, bgColor: BsBgColor = BsBgColor.LIGHT, classes: Set<String> = setOf(), init: (Navbar.() -> Unit)? = null): Navbar +fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor = NavbarColor.LIGHT, bgColor: BsBgColor = BsBgColor.LIGHT, collapseOnClick: Boolean = false, classes: Set<String> = setOf(), init: (Navbar.() -> Unit)? = null): Navbar

DSL builder extension function.

-fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget
diff --git a/api/pl.treksoft.kvision.form.check/-check-box/remove-event-listener.html b/api/pl.treksoft.kvision.form.check/-check-box/remove-event-listener.html new file mode 100644 index 00000000..7ca5b570 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-check-box/remove-event-listener.html @@ -0,0 +1,21 @@ + + + +CheckBox.removeEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.check / CheckBox / removeEventListener
+
+

removeEventListener

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

Overrides Widget.removeEventListener

+

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.form.check/-check-box/set-event-listener.html b/api/pl.treksoft.kvision.form.check/-check-box/set-event-listener.html index 98d604ac..38aec0eb 100644 --- a/api/pl.treksoft.kvision.form.check/-check-box/set-event-listener.html +++ b/api/pl.treksoft.kvision.form.check/-check-box/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

Overrides Widget.setEventListener

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

Parameters

@@ -18,7 +18,7 @@

block - event handler

Return
-

current widget

+

id of the handler

Example:

@@ -30,28 +30,5 @@ // self is of type Button here } }

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

Overrides Widget.setEventListener

-
-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