A component for encapsulating a utility menu allowing an individual to launch the items in a new browser window.
Opaque ApplicationLauncher
element that can produce msg
messages
applicationLauncher : { id : String, items : List { itemId : String, label : String }, onItemSelect : String -> msg, onClick : msg } -> ApplicationLauncher msg
Construacts an ApplicationLauncher
from the arguements
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 ...
toMarkup : ApplicationLauncher msg -> Element msg
Given the custom type representation, renders as an Element msg
.