All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.tech.skot.core.components.SKPagerTabsVC.kt Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
package tech.skot.core.components

import tech.skot.core.view.SKSpannedString

@SKLayoutIsSimpleView
interface SKPagerWithTabsVC : SKComponentVC {
    val pager: SKPagerVC
    var tabConfigs: List
    var tabsVisibility: Visibility

    sealed class TabConfig {
        class IconTitle(val title: SKSpannedString, val icon: tech.skot.core.view.Icon) : TabConfig()
        class Title(val title: String) : TabConfig()
        class SpannableTitle(val title: SKSpannedString) : TabConfig()
        class Icon(val icon: tech.skot.core.view.Icon) : TabConfig()
        class Custom(val tab: SKComponentVC) : TabConfig()
    }

    sealed class Visibility {
        object Visible : Visibility()
        object Gone : Visibility()
        object Automatic : Visibility()
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy