kalutheo / elm-ui-explorer / UIExplorer.Plugins.Tabs

Tabs

This plugin allows to display a Tabs below your stories.

See usage here


type alias Model =
{ displayedTab : Basics.Int }

Model of the tab


type Msg
    = TabOpened Basics.Int

Messages triggered by the tab

initialModel : Model

The initial Model used to initialize the tab

update : Msg -> Model -> Model

Use this update function to update the tab

view : UIExplorer.ColorMode.ColorMode -> { b | displayedTab : Basics.Int } -> List ( String, Html (UIExplorer.Msg a), Html (UIExplorer.Msg a) ) -> (Msg -> a) -> Html (UIExplorer.Msg a)

display the tab with this function