lenards/elm-ui-patternfly/1.5.0

NOTE: the latest version is 4.0.2

PF4.Navigation

A stateless component for application navigation

Intended to have its state "driven" by the Elm application using it.

Uses the Element.Region.navigation to indicate semantic intent.

https://www.patternfly.org/v4/components/navigation

Definition

Constructor functions

Perform State Change

selectItem : String -> Navigation msg -> Navigation msg

Selects an item by itemName

For duplicates, the handling of selection would be predictable given the underlying representation.

Selection functions

withSelectedItem : String -> Navigation msg -> Navigation msg

Configures the selected item to be itemName

Configures that navigation to have the first NavItem msg as selected

Configuration functions

Configures the orientation for rendering to be horizontal

Configures the orientation for rendering

Rendering stateless element

toMarkup : Navigation msg -> Element msg

Given the custom type representation, renders as an Element msg.