EngageSoftware / elm-engage-common / Engage.UI.Dialog

UI.Dialog


type alias Attribute msg =
InternalAttribute msg -> InternalAttribute msg

The Attribute type


type State

The State type

cancelText : String -> Attribute msg

Get the cancelText message

confirm : Engage.Namespace.Namespace -> State -> List (Attribute msg) -> List (Html msg) -> Html msg

Get the confirm view

hide : State -> State

Hide the dialog

initialState : State

Get the initial State

okText : String -> Attribute msg

Get the okText message

onCancel : (State -> msg) -> Attribute msg

Get the onCancel message

onOk : (State -> msg) -> Attribute msg

Get the onOk message

show : State -> ( State, Task Browser.Dom.Error () )

Show the dialog