Tab allows visually selecting a page in a horizontal list.
Example of usage:
TabList.tabList Msg.SportSelect
Sports.toString
[ Sports.Soccer
, Sports.Basket
, Sports.Bowling
]
model.sportSelected
|> TabList.renderElement renderConfigDescribes everything required to create a TabList msg a.
Tabs.tabList Msg.TabSelect
tabToString
[ TabOne, TabTwo ]
model.tabSelectedEnd of the builder's life. The result of this function is a ready-to-insert Elm UI's Element.
The
TabList msg atype is used for describing the component for later rendering.