aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-02-26 23:12:48 +0100
committerRobert Jaros <rjaros@finn.pl>2020-02-26 23:12:48 +0100
commit450d3d259cd3253f7cda8ab4baffb0a6d070d596 (patch)
tree25ff42e5e9e7d683ce5395fdd7159ed85244b1a3 /kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft
parent94f36f212a60654571728a1f34701d95453efc22 (diff)
downloadkvision-450d3d259cd3253f7cda8ab4baffb0a6d070d596.tar.gz
kvision-450d3d259cd3253f7cda8ab4baffb0a6d070d596.tar.bz2
kvision-450d3d259cd3253f7cda8ab4baffb0a6d070d596.zip
Major changes in the event handling architecture. Support for multiple event handlers.
Diffstat (limited to 'kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft')
-rw-r--r--kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt b/kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt
index f195234a..3a52fed2 100644
--- a/kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt
+++ b/kvision-modules/kvision-bootstrap-spinner/src/main/kotlin/pl/treksoft/kvision/form/spinner/SpinnerInput.kt
@@ -27,7 +27,6 @@ import pl.treksoft.kvision.core.Container
import pl.treksoft.kvision.core.StringBoolPair
import pl.treksoft.kvision.core.StringPair
import pl.treksoft.kvision.core.Widget
-import pl.treksoft.kvision.core.onEvent
import pl.treksoft.kvision.form.FormInput
import pl.treksoft.kvision.form.InputSize
import pl.treksoft.kvision.form.ValidationStatus
@@ -152,7 +151,7 @@ open class SpinnerInput(
ButtonsType.HORIZONTAL -> this.addSurroundingCssClass("kv-spinner-btn-horizontal")
}
this.surroundingSpan = true
- this.onEvent {
+ this.setInternalEventListener<SpinnerInput> {
change = {
self.changeValue()
}