Internal. Represents the state of the component. Values passed in are susceptible to change.
Returns the configuration for a Base accordion skin.
...
type alias Slug =
String
type Msg =
Toggled Slug Bool
...
myAccordionConfig : Accordion
myAccordionConfig =
Accordion.base "my_accordion_slug" Toggled
render : Html Msg
render =
Accordion.render myAccordionConfig
...Opens the Accordion to reveal it's content.
updatedAccordionState =
Accordion.open myAccordionStateCloses the Accordion to hide it's content.
updatedAccordionState =
Accordion.close myAccordionStateRenders a group of Accordion(s) inside an AccordionGroup.
Adds a generic Html.Attribute to the Accordion.
Adds a class for the wrapper to the Accordion.
Adds a class for the content to the Accordion.
Adds a string title to the Accordion.
Adds an Html title to the Accordion.
Adds content to the Accordion
Represents the static configuration of the component. Values passed in are no more modified by the setter.