diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-05-22 14:35:45 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-05-22 14:35:45 +0200 |
commit | f63340e6324b557abb96cacc6df3d94f5b1fa71d (patch) | |
tree | 22777247e79917928bb094768fd9c571de81bc51 /src/main/kotlin/pl/treksoft/kvision/utils | |
parent | 1cb5675924a56baf6f8dce62e569bf6f2416d58e (diff) | |
download | kvision-f63340e6324b557abb96cacc6df3d94f5b1fa71d.tar.gz kvision-f63340e6324b557abb96cacc6df3d94f5b1fa71d.tar.bz2 kvision-f63340e6324b557abb96cacc6df3d94f5b1fa71d.zip |
Add resizeWindow event to Window component.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/utils')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt index ccb11ff9..7bb18a58 100644 --- a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt +++ b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt @@ -56,6 +56,8 @@ private fun vNodeData(): VNodeData = js("({})") */ interface KvJQueryEventObject : JQueryEventObject { val clickedIndex: Int + val width: Int + val height: Int } /** @@ -100,6 +102,7 @@ interface BtOn : On { var fileResetUpload: ((KvEvent) -> kotlin.Unit)? var fileBrowseUpload: ((KvEvent) -> kotlin.Unit)? var filePreUpload: ((KvEvent) -> kotlin.Unit)? + var resizeWindow: ((KvEvent) -> kotlin.Unit)? } /** |