QiTASC/hatchinq/10.0.1

NOTE: the latest version is 29.0.0

Hatchinq.TabBar

Exposed

type alias Config msg =
{ theme : Theme
, lift : Message msg -> msg
}
type Message msg
type alias State =
{ focused : 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
}
Config msg
-> List (Attribute InternalConfig)
-> View tab msg
-> Element msg
init : State
scrollable : Attribute InternalConfig
update : (Message msg -> msg) -> Message msg -> State -> ( State, Cmd msg )