rundis / elm-bootstrap

Responsive and reliable web apps with Elm and Twitter Bootstrap
http://elm-bootstrap.info/
BSD 3-Clause "New" or "Revised" License
398 stars 72 forks source link

Expose State(..) in Bootstrap.Tab #160

Closed samlee64 closed 5 years ago

samlee64 commented 5 years ago
module Bootstrap.Tab exposing
    ( view, config, items, initialState, customInitialState, Config, State
    , pills, withAnimation, justified, fill, center, right, attrs, useHash, Option
    , item, link, pane, Item, Link, Pane
    , subscriptions
    )

State is currently an opaque type. Could we expose all of State so that I am able to grab what the active tab is?

rundis commented 5 years ago

Whats the use case? Typically you would use elm navigation in most web apps, then you can keep track of the id of the active tab explicitly in your own state by handling navigation events and pick out the hash from the url passed in.

rundis commented 5 years ago

Duplicate of #65