aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-onsenui/src/main/kotlin/pl/treksoft/kvision/onsenui/tabbar/Tabbar.kt')
-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")