QiTASC / hatchinq / Hatchinq.TabBar

Exposed


type alias Config msg =
{ theme : Hatchinq.Theme.Theme
, lift : Message msg -> msg 
}


type Message msg


type alias State =
{ focused : Basics.Int }


type TabButtons tab
    = TextOnly (List ( String, tab ))
    | IconOnly (List ( String, tab ))
    | IconAndText (List ( String, String, tab ))


type alias View tab msg =
{ state : State
, tabButtons : TabButtons tab
, selectedTab : tab
, onTabSelect : tab -> msg 
}

configure : Config msg -> List (Hatchinq.Attribute.Attribute InternalConfig) -> View tab msg -> Element msg

init : State

scrollable : Hatchinq.Attribute.Attribute InternalConfig

update : (Message msg -> msg) -> Message msg -> State -> ( State, Platform.Cmd.Cmd msg )