jjagielka / select-menu / Menu.Dropdown

Probably the simplest implementation of the dropdown.

Types


type Dropdown

Dropdown model type.

Operations

Creation

open : Dropdown

Creates an open dropdown.

closed : Dropdown

Creates a closed dropdown.

View

view : (Dropdown -> msg) -> Dropdown -> List (Html.Attribute msg) -> List (Html msg) -> Html msg

View

Control

trigger : (Dropdown -> msg) -> Dropdown -> List (Html.Attribute msg)

This should be attached to the element that will control dropdown opening (button, input for search, ...)