aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-06-07 23:17:31 +0200
committerRobert Jaros <rjaros@finn.pl>2020-06-07 23:17:31 +0200
commitc2716ef0aae16553655cab4ea24f685e49e5fee8 (patch)
tree0a3fc4a4603e0cfa1faea3a3ca9d6673b4b9cbb0 /kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar
parent353815977be03d462393c57b829f2264aa9be85d (diff)
downloadkvision-master.tar.gz
kvision-master.tar.bz2
kvision-master.zip
OnsenUI carousel component. Basic tests for OnsenUI module (#126)HEADmaster
Diffstat (limited to 'kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar')
-rw-r--r--kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt b/kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt
index f526676c..a8fd5743 100644
--- a/kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt
+++ b/kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt
@@ -52,7 +52,7 @@ enum class TabsPosition(internal val type: String) {
*/
open class Tabbar(
tabPosition: TabsPosition? = null,
- animation: Boolean = true,
+ animation: Boolean? = null,
swipeable: Boolean? = null,
classes: Set<String> = setOf(),
init: (Tabbar.() -> Unit)? = null
@@ -66,7 +66,7 @@ open class Tabbar(
/**
* Determines if the transitions are animated.
*/
- var animation: Boolean by refreshOnUpdate(animation)
+ var animation: Boolean? by refreshOnUpdate(animation)
/**
* Determines if the tab bar can be scrolled by drag or swipe.
@@ -123,7 +123,7 @@ open class Tabbar(
tabPosition?.let {
sn.add("position" to it.type)
}
- if (!animation) {
+ if (animation == false) {
sn.add("animation" to "none")
}
if (swipeable == true) {
@@ -208,7 +208,7 @@ open class Tabbar(
}
/**
- * Get the active tab index.
+ * Gets the active tab index.
* @return active tab index
*/
@Suppress("UnsafeCastFromDynamic")