arowM / elm-mixin / Mixin.Events

Html.Events alternatives just for convenience.

Mouse

onClick : msg -> Mixin msg

onDoubleClick : msg -> Mixin msg

onMouseDown : msg -> Mixin msg

onMouseUp : msg -> Mixin msg

onMouseEnter : msg -> Mixin msg

onMouseLeave : msg -> Mixin msg

onMouseOver : msg -> Mixin msg

onMouseOut : msg -> Mixin msg

Forms

onInput : (String -> msg) -> Mixin msg

Alternetive to Html.Events.onInput.

onChange : (String -> msg) -> Mixin msg

Alternetive to Html.Events.Extra.onChange.

Though onChange is not in elm-html, it makes it easy to debounce user input events for certain cases.

onCheck : (Basics.Bool -> msg) -> Mixin msg

Alternetive to Html.Events.onCheck.

onSubmit : msg -> Mixin msg

Alternetive to Html.Events.onSubmit.

Focus

onBlur : msg -> Mixin msg

onFocus : msg -> Mixin msg

Custom

on : String -> Json.Decode.Decoder msg -> Mixin msg

Alternetive to Html.Events.on.

stopPropagationOn : String -> Json.Decode.Decoder ( msg, Basics.Bool ) -> Mixin msg

Alternetive to Html.Events.stopPropagationOn.

preventDefaultOn : String -> Json.Decode.Decoder ( msg, Basics.Bool ) -> Mixin msg

Alternetive to Html.Events.preventDefaultOn.

custom : String -> Json.Decode.Decoder { message : msg, stopPropagation : Basics.Bool, preventDefault : Basics.Bool } -> Mixin msg

Alternetive to Html.Events.custom.