EngageSoftware/elm-engage-common/8.2.8

NOTE: the latest version is 8.2.10

Engage.UI.Error

UI.Error

type Status
= Unknown
| None { infos : List String }
| Error { reasons : List String }
| Ok

The Status type

error : { namespace : Namespace } -> Status -> Html msg

Get the error view

{ namespace : Namespace
, localize : String -> String
}
-> Status
-> Html msg

Get the error localized view

{ namespace : Namespace
, status : Status
, onChange : State -> msg
}
-> State
-> Html msg

Get the inline error view

isError : Status -> Maybe Bool

Check if the Status is Error

isNone : Status -> Maybe Bool

Check if the Status is None

localizeStatus : (String -> String) -> Status -> Status

Localize the Status

Merge two statuses