A simple accordion element
-- TODO: example
{ selected : Basics.Int }
The accordion state
{ msg : State -> msg
, title : data -> String
, render : data -> Html msg
, selectedClass : String
, notSelectedClass : String
}
Configure how the accordion should be rendered
view : Config data msg -> State -> List data -> Html msg
Renders accordion
init : State
Initial state
config : (State -> msg) -> (data -> String) -> (data -> Html msg) -> Config data msg
Simple config from msg, title and rendering function