diff options
author | Robert Jaros <rjaros@finn.pl> | 2020-06-06 23:59:31 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2020-06-06 23:59:31 +0200 |
commit | 2993527f8297169ce91826a91bfcf168e79ccc88 (patch) | |
tree | b13a5b677a631fa9bf3921bb26701a69716dfd39 /src/main/kotlin/pl | |
parent | dd41d887f679b3bb92e75845270d9981f7443ee9 (diff) | |
download | kvision-2993527f8297169ce91826a91bfcf168e79ccc88.tar.gz kvision-2993527f8297169ce91826a91bfcf168e79ccc88.tar.bz2 kvision-2993527f8297169ce91826a91bfcf168e79ccc88.zip |
New kvision-onsenui modules. Support for main structural components of OnsenUI with DSL builders. Work in progress. (#126)
Diffstat (limited to 'src/main/kotlin/pl')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/KVManager.kt | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt index 1cd41e7d..30adf285 100644 --- a/src/main/kotlin/pl/treksoft/kvision/KVManager.kt +++ b/src/main/kotlin/pl/treksoft/kvision/KVManager.kt @@ -57,6 +57,10 @@ object KVManager { require("kvision-kvision-fontawesome").pl.treksoft.kvision.KVManagerFontAwesome } catch (e: Throwable) { } + try { + require("kvision-kvision-onsenui-css").pl.treksoft.kvision.KVManagerOnsenuiCss + } catch (e: Throwable) { + } require("./css/style.css") require("jquery-resizable-dom") } diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt index 768ce8aa..aac0dea2 100644 --- a/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt +++ b/src/main/kotlin/pl/treksoft/kvision/utils/Snabbdom.kt @@ -136,6 +136,22 @@ interface BtOn : On { var tabChange: ((KvEvent) -> Unit)? var tabClosing: ((KvEvent) -> Unit)? var tabClosed: ((KvEvent) -> Unit)? + var onsPrepush: ((KvEvent) -> Unit)? + var onsPrepop: ((KvEvent) -> Unit)? + var onsPostpush: ((KvEvent) -> Unit)? + var onsPostpop: ((KvEvent) -> Unit)? + var onsInit: ((KvEvent) -> Unit)? + var onsShow: ((KvEvent) -> Unit)? + var onsHide: ((KvEvent) -> Unit)? + var onsDestroy: ((KvEvent) -> Unit)? + var onsPreopen: ((KvEvent) -> Unit)? + var onsPreclose: ((KvEvent) -> Unit)? + var onsPostopen: ((KvEvent) -> Unit)? + var onsPostclose: ((KvEvent) -> Unit)? + var onsModechange: ((KvEvent) -> Unit)? + var onsPrechange: ((KvEvent) -> Unit)? + var onsPostchange: ((KvEvent) -> Unit)? + var onsReactive: ((KvEvent) -> Unit)? } /** |