lenards / elm-ui-patternfly / PF4.ApplicationLauncher

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

Definition


type ApplicationLauncher msg

Opaque ApplicationLauncher element that can produce msg messages

Constructor function

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

Construacts an ApplicationLauncher from the arguements

Configuration function(s)

withActiveMenu : String -> ApplicationLauncher msg -> ApplicationLauncher msg

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.