QiTASC/hatchinq/14.2.0

NOTE: the latest version is 29.0.0

Hatchinq.Menu

Exposed

type Message msg
= OpenMenu
| CloseMenu (Maybe msg)
type alias State =
{ isOpen : Bool }
type alias View msg =
{ id : String
, items : List (MenuItem msg)
, state : State
}
configure : Config msg -> List (Attribute msg) -> View msg -> Element msg
init : State
subscriptions : String -> State -> (Message msg -> msg) -> Sub msg
update : Message msg -> State -> ( State, Cmd msg )