lenards/elm-ui-patternfly/2.1.0

NOTE: the latest version is 4.0.2

PF6.SimpleList

PF6 SimpleList component

A clickable list with selection, used for simple navigation or action lists.

See: https://www.patternfly.org/components/simple-list

Definition

type SimpleList msg

Opaque SimpleList type

Opaque SimpleListItem type

Constructors

Construct a SimpleList

simpleList
    [ simpleListItem "Option 1" (Selected "opt1") |> withItemActive
    , simpleListItem "Option 2" (Selected "opt2")
    , simpleListItem "Option 3" (Selected "opt3")
    ]
simpleListItem : String -> msg -> SimpleListItem msg

Construct a list item with label and click handler

Item modifiers

Mark an item as active/selected

Disable an item

List modifiers

Display items in a grouped style with borders

Rendering

toMarkup : SimpleList msg -> Element msg

Render the SimpleList as an Element msg