lenards/elm-ui-patternfly/4.0.2

PF6.Dropdown

PF6 Dropdown component

Dropdowns present a list of actions or links in a constrained space.

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

Definition

Constructor

Item constructors

Toggle modifiers

withText : String -> Dropdown msg -> Dropdown msg

Set toggle label text

withIcon : Element msg -> Dropdown msg -> Dropdown msg

Add an icon to the toggle

Plain toggle (no border/background)

Disable the toggle button

Position modifiers

Align menu to the right

withUp : Dropdown msg -> Dropdown msg

Open menu upward instead of downward

Rendering

toMarkup : Theme -> Dropdown msg -> Element msg

Render the Dropdown as an Element msg