lenards/elm-ui-patternfly/4.0.0

NOTE: the latest version is 4.0.2

PF6.Menu

PF6 Menu component

A generic menu primitive with items, dividers, and section headers.

See: https://www.patternfly.org/components/menus/menu

Definition

Constructor

Item constructors

Item modifiers

withItemIcon : Element msg -> MenuItem msg -> MenuItem msg

Add an icon to a menu item

withItemDescription : String -> MenuItem msg -> MenuItem msg

Add a description line below the item label

Mark a menu item as selected (shows a check indicator)

Disable a menu item

Mark a menu item as danger (red text)

Menu modifiers

withSearchable : String -> (String -> msg) -> Menu msg -> Menu msg

Add a search input at the top of the menu

withMaxHeight : Int -> Menu msg -> Menu msg

Set a maximum height in pixels (enables scrolling)

Rendering

toMarkup : Theme -> Menu msg -> Element msg

Render the Menu as an Element msg