lenards/elm-ui-patternfly/2.0.0

NOTE: the latest version is 4.0.2

PF6.ExpandableSection

PF6 ExpandableSection component

Expandable sections toggle the visibility of content.

See: https://www.patternfly.org/components/expandable-section

Definition

Opaque ExpandableSection type

Constructor

{ body : Element msg
, isExpanded : Bool
, onToggle : Bool -> msg
}

Construct an ExpandableSection

expandableSection
    { body = Element.text "Hidden content here..."
    , isExpanded = model.expanded
    , onToggle = SetExpanded
    }

Modifiers

Set the toggle button text when expanded

Set the toggle button text when collapsed

Detached mode — toggle button is separate from the content

Width

Set explicit width

Rendering

toMarkup : ExpandableSection msg -> Element msg

Render the ExpandableSection as an Element msg