QiTASC / hatchinq / Hatchinq.AppBar

Exposed


type alias AppBarButton msg =
{ id : Maybe String
, icon : AppBarIcon
, message : msg
, attributes : List (Element.Attribute msg) 
}


type AppBarIcon
    = MaterialIcon String
    | Avatar String String


type alias Config =
{ theme : Hatchinq.Theme.Theme }


type Message


type State


type alias View msg =
{ title : Element msg
, buttons : List (AppBarButton msg) 
}

appBarHeight : Basics.Int

configure : Config -> List (Hatchinq.Attribute.Attribute (InternalView msg)) -> View msg -> Element msg

elevate : Basics.Bool -> Hatchinq.Attribute.Attribute (InternalView msg)

init : State

navigate : msg -> Hatchinq.Attribute.Attribute (InternalView msg)

placeholder : List (Hatchinq.Attribute.Attribute (InternalView msg)) -> Element msg

update : Message -> State -> State