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 --- .../-select-input/index.html | 46 ++++++++++++++++- .../-select-opt-group/index.html | 46 ++++++++++++++++- .../-select-option/index.html | 48 ++++++++++++++++-- .../-select-remote-input/index.html | 46 ++++++++++++++++- .../-select-remote/index.html | 59 ++++++++++++++++++++-- .../-select-remote/remove-event-listener.html | 21 ++++++++ .../-select-remote/set-event-listener.html | 27 +--------- .../-select/index.html | 59 ++++++++++++++++++++-- .../-select/remove-event-listener.html | 21 ++++++++ .../-select/set-event-listener.html | 27 +--------- .../-simple-select-input/index.html | 46 ++++++++++++++++- .../-simple-select/index.html | 59 ++++++++++++++++++++-- .../-simple-select/remove-event-listener.html | 21 ++++++++ .../-simple-select/set-event-listener.html | 27 +--------- 14 files changed, 451 insertions(+), 102 deletions(-) create mode 100644 api/pl.treksoft.kvision.form.select/-select-remote/remove-event-listener.html create mode 100644 api/pl.treksoft.kvision.form.select/-select/remove-event-listener.html create mode 100644 api/pl.treksoft.kvision.form.select/-simple-select/remove-event-listener.html (limited to 'api/pl.treksoft.kvision.form.select') diff --git a/api/pl.treksoft.kvision.form.select/-select-input/index.html b/api/pl.treksoft.kvision.form.select/-select-input/index.html index 59197095..7f729cb6 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/index.html @@ -362,6 +362,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

@@ -539,6 +565,13 @@ + + + + + + + + @@ -731,7 +773,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

@@ -719,10 +752,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.select/-select-opt-group/index.html b/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html index 5af198c0..5ca0a97b 100644 --- a/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html @@ -168,6 +168,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

@@ -345,6 +371,13 @@ + + + + + + + + @@ -537,7 +579,7 @@

onEvent

+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int + + + + @@ -603,6 +610,32 @@
+

eventFlow

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

fieldLabel

@@ -525,10 +558,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.select/-select-option/index.html b/api/pl.treksoft.kvision.form.select/-select-option/index.html index b0e04672..d3fe687d 100644 --- a/api/pl.treksoft.kvision.form.select/-select-option/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-option/index.html @@ -468,6 +468,15 @@
+

removeEventListener

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

Removes event listener from current widget.

+

removeEventListeners

@@ -545,10 +554,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.

+

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

@@ -661,10 +694,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
diff --git a/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html b/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html index 9bf2e494..f52caa7b 100644 --- a/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html @@ -321,6 +321,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 +524,13 @@ + + + + + + + + @@ -690,7 +732,7 @@

onEvent

+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int + + + + @@ -357,6 +364,32 @@
+

eventFlow

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

fieldLabel

@@ -678,10 +711,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.select/-select-remote/index.html b/api/pl.treksoft.kvision.form.select/-select-remote/index.html index 4d2a5764..58a7a2fc 100644 --- a/api/pl.treksoft.kvision.form.select/-select-remote/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-remote/index.html @@ -260,6 +260,15 @@
+

removeEventListener

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

Removes event listener from current widget.

+

removeEventListeners

@@ -272,10 +281,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.

+

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

@@ -534,6 +567,13 @@ + + + + + + + + @@ -726,7 +775,7 @@

onEvent

+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int + + + + @@ -386,6 +393,32 @@
+

eventFlow

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

fieldLabel

@@ -714,10 +754,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.select/-select-remote/remove-event-listener.html b/api/pl.treksoft.kvision.form.select/-select-remote/remove-event-listener.html new file mode 100644 index 00000000..0ffc96ba --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-select-remote/remove-event-listener.html @@ -0,0 +1,21 @@ + + + +SelectRemote.removeEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.select / SelectRemote / 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.select/-select-remote/set-event-listener.html b/api/pl.treksoft.kvision.form.select/-select-remote/set-event-listener.html index 6aa07013..44c03012 100644 --- a/api/pl.treksoft.kvision.form.select/-select-remote/set-event-listener.html +++ b/api/pl.treksoft.kvision.form.select/-select-remote/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
-        }
-    }

diff --git a/api/pl.treksoft.kvision.form.select/-select/index.html b/api/pl.treksoft.kvision.form.select/-select/index.html index 955206e6..99fbdaad 100644 --- a/api/pl.treksoft.kvision.form.select/-select/index.html +++ b/api/pl.treksoft.kvision.form.select/-select/index.html @@ -289,6 +289,15 @@
+

removeEventListener

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

Removes event listener from current widget.

+

removeEventListeners

@@ -301,10 +310,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.

+

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

@@ -563,6 +596,13 @@ + + + + + + + + @@ -755,7 +804,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

@@ -743,10 +783,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.select/-select/remove-event-listener.html b/api/pl.treksoft.kvision.form.select/-select/remove-event-listener.html new file mode 100644 index 00000000..964ae367 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-select/remove-event-listener.html @@ -0,0 +1,21 @@ + + + +Select.removeEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.select / Select / 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.select/-select/set-event-listener.html b/api/pl.treksoft.kvision.form.select/-select/set-event-listener.html index 30d10221..e7e27b2d 100644 --- a/api/pl.treksoft.kvision.form.select/-select/set-event-listener.html +++ b/api/pl.treksoft.kvision.form.select/-select/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
-        }
-    }

diff --git a/api/pl.treksoft.kvision.form.select/-simple-select-input/index.html b/api/pl.treksoft.kvision.form.select/-simple-select-input/index.html index 81f1ece1..773c3982 100644 --- a/api/pl.treksoft.kvision.form.select/-simple-select-input/index.html +++ b/api/pl.treksoft.kvision.form.select/-simple-select-input/index.html @@ -247,6 +247,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

@@ -424,6 +450,13 @@ + + + + + + + + @@ -616,7 +658,7 @@

onEvent

+fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Int + + + + @@ -285,6 +292,32 @@
+

eventFlow

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

fieldLabel

@@ -604,10 +637,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.select/-simple-select/index.html b/api/pl.treksoft.kvision.form.select/-simple-select/index.html index 350d54b4..7f838af7 100644 --- a/api/pl.treksoft.kvision.form.select/-simple-select/index.html +++ b/api/pl.treksoft.kvision.form.select/-simple-select/index.html @@ -206,6 +206,15 @@
+

removeEventListener

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

Removes event listener from current widget.

+

removeEventListeners

@@ -218,10 +227,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.

+

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

@@ -462,6 +495,13 @@ + + + + + + + + @@ -654,7 +703,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

@@ -642,10 +682,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.select/-simple-select/remove-event-listener.html b/api/pl.treksoft.kvision.form.select/-simple-select/remove-event-listener.html new file mode 100644 index 00000000..6e072c87 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-simple-select/remove-event-listener.html @@ -0,0 +1,21 @@ + + + +SimpleSelect.removeEventListener - kvision + + + +kvision / pl.treksoft.kvision.form.select / SimpleSelect / 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.select/-simple-select/set-event-listener.html b/api/pl.treksoft.kvision.form.select/-simple-select/set-event-listener.html index 53e21e89..dc428000 100644 --- a/api/pl.treksoft.kvision.form.select/-simple-select/set-event-listener.html +++ b/api/pl.treksoft.kvision.form.select/-simple-select/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