Make Dropdown and FocusList work together.
FocusList.Item msg
Menu item type.
Menu type.
Internal select/menu messages.
init : String -> Menu
Initialize a menu object. As the browser focus is used, menu requires unique identifier.
update : Msg -> Menu -> ( Menu, Platform.Cmd.Cmd Msg )
Standard elm update.
view : Menu -> List (Html.Attribute Msg) -> List (Item Msg) -> Html Msg
Renders the menu. Attributes are used to style the dropdown container. Second parameter is an arbitrary list of menut Item's.
link : String -> List (Html.Attribute msg) -> List (Html msg) -> Item msg
Html link menu item. Click/Enter triggers url redirection.
button : String -> List (Html.Attribute msg) -> List (Html msg) -> Item msg
Button like menu. Use it when you need select mode - no url redirection but value collection. This is used with onSelect attributes.
open : Menu -> Menu
Changes the menu state to Open
trigger : (Msg -> msg) -> Menu -> List (Html.Attribute msg)
Menu control. Add that set of attributes to the element controling the menu: button, input, ...
onSelect : (String -> msg) -> Menu -> Html.Attribute msg
Menu selection catching. Add this as a Html.Attribute to the container carring the menu.