primait / pyxis-components / Prima.Pyxis.Message

Configuration


type Config msg

Represent the configuration of a Message

Configuration Methods

error : List (Html msg) -> Config msg

Defines the configuration of an Error message.

info : List (Html msg) -> Config msg

Defines the configuration of an Info message.

success : List (Html msg) -> Config msg

Defines the configuration of a Success message.

alert : List (Html msg) -> Config msg

Defines the configuration of an Alert message.

errorAlt : List (Html msg) -> Config msg

Defines the configuration of an Error message with kind Alt.

infoAlt : List (Html msg) -> Config msg

Defines the configuration of an Info message with kind Alt.

successAlt : List (Html msg) -> Config msg

Defines the configuration of a Success message with kind Alt.

alertAlt : List (Html msg) -> Config msg

Defines the configuration of an Alert message with kind Alt.

Rendering

render : Config msg -> Html msg

Renders the Message by receiving it's configuration.

Options

withClass : String -> Config msg -> Config msg

Adds a class to the Message.

withClassList : List ( String, Basics.Bool ) -> Config msg -> Config msg

Adds classes to the classList of the Message.

withAttribute : Html.Attribute msg -> Config msg -> Config msg

Adds a generic attribute to the Message.

withSvgIcons : Config msg -> Config msg

Tells the Message component to use SVG icons instead of Pyxis icons.

Event Options

withOnClick : msg -> Config msg -> Config msg

Adds an onClick Html.Event to the Message.

withOnMouseDown : msg -> Config msg -> Config msg

Adds an onMouseDown Html.Event to the Message.

withOnMouseUp : msg -> Config msg -> Config msg

Adds an onMouseUp Html.Event to the Message.

withOnMouseEnter : msg -> Config msg -> Config msg

Adds an onMouseEnter Html.Event to the Message.

withOnMouseLeave : msg -> Config msg -> Config msg

Adds an onMouseLeave Html.Event to the Message.

withOnMouseOver : msg -> Config msg -> Config msg

Adds an onMouseOver Html.Event to the Message.

withOnMouseOut : msg -> Config msg -> Config msg

Adds an onMouseOut Html.Event to the Message.