import Accordion
type alias Model =
Bool
type Msg
= HeadClicked
view model =
Accordion.accordion model
(Accordion.head
[ onClick HeadClicked ]
headChildren
)
(Accordion.body
[]
bodyChildren
)
uodate msg model =
case msg of
HeadClicked ->
( not model
, Cmd.none
)Accordion head type
Accordion head constructor
attributes List of attributeschildren List of child elementsAccordion body type
Accordion body constructor
attributes List of attributeschildren List of child elements
Accordion view function
attributesList of attributesheadAn accordion head elementbodyAn accordion body elementopenSpecify whether a dailog is open