lenards/elm-ui-patternfly/2.1.0

NOTE: the latest version is 4.0.2

PF4.ApplicationLauncher

A component for encapsulating a utility menu allowing an individual to launch the items in a new browser window.

Definition

Opaque ApplicationLauncher element that can produce msg messages

Constructor function

{ id : String
, items :
List
{ itemId : String
, label : String
}
, onItemSelect : String -> msg
, onClick : msg
}

Construacts an ApplicationLauncher from the arguements

Configuration function(s)

Configures the active menu identifier.

If the id of this element equals what menuId passed in, then the launcher's menu will pop open.

This has a with prefix but it's more of a setter.

NOTE: this PF4 component more to using toMarkupFor and an opaque state when rendering.

Future Me apologizes in advance ...

Rendering element

toMarkup : ApplicationLauncher msg -> Element msg

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