achutkiran / material-components-elm / Mwc.Menu

Material design menu


type alias Model =
{ menuOpen : Dict String Basics.Bool }

Menu Model


type Msg msg

Menu Msg

disabled : Basics.Bool -> Property msg

disabled property of menu

extraAttributes : List (Html.Styled.Attribute msg) -> Property msg

extraAttributes property of menu

icon : String -> Property msg

icon property of menu

model : Model

Initial model of menu

update : Msg msg -> Model -> ( Model, Platform.Cmd.Cmd msg )

update function of menu

view : List (Property msg) -> List (ItemConfig msg) -> String -> Model -> (Msg msg -> msg) -> Html.Styled.Html msg

view function of menu

zIndex : Basics.Int -> Property msg

zIndex property of menu

item : List (Property msg) -> List (Html.Styled.Html msg) -> ItemConfig msg

item in menu

onSelect : msg -> Property msg

onSelect property of menuItem

divider : Property msg

divider for menu item

menuStyle : Css.Style -> Property msg

Style for menu items container