diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-07-09 20:09:19 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-07-09 20:09:19 +0200 |
commit | 5f00087fac48d77c2e8ca729eec42d795cc648b5 (patch) | |
tree | 30e093fa8df070d3737dc7aee62d6c19e143e110 /src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt | |
parent | d1612a42ec508f3ef0f61163d181e01931b9157c (diff) | |
download | kvision-5f00087fac48d77c2e8ca729eec42d795cc648b5.tar.gz kvision-5f00087fac48d77c2e8ca729eec42d795cc648b5.tar.bz2 kvision-5f00087fac48d77c2e8ca729eec42d795cc648b5.zip |
Add support for additional icons (#68)
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt index cb48cfd1..db40c072 100644 --- a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt +++ b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt @@ -53,7 +53,7 @@ inline fun obj(init: dynamic.() -> Unit): dynamic { @Suppress("UNUSED_VARIABLE") inline fun <reified T> Any?.createInstance(vararg args: dynamic): T { val jsClass = this - val argsArray = (listOf(null) + args).toTypedArray() + val argsArray = (listOf<dynamic>() + args).toTypedArray() return js("new (Function.prototype.bind.apply(jsClass, argsArray))").unsafeCast<T>() } @@ -117,6 +117,9 @@ interface BtOn : On { var fileBrowseUpload: ((KvEvent) -> Unit)? var filePreUpload: ((KvEvent) -> Unit)? var resizeWindow: ((KvEvent) -> Unit)? + var closeWindow: ((KvEvent) -> Unit)? + var maximizeWindow: ((KvEvent) -> Unit)? + var minimizeWindow: ((KvEvent) -> Unit)? var tabulatorRowClick: ((KvEvent) -> Unit)? var tabulatorRowDblClick: ((KvEvent) -> Unit)? var tabulatorRowSelectionChanged: ((KvEvent) -> Unit)? |