arowM/elm-mixin/5.2.0

NOTE: the latest version is 5.3.0

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 : (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 -> Decoder msg -> Mixin msg

Alternetive to Html.Events.on.

stopPropagationOn : String -> Decoder ( msg, Bool ) -> Mixin msg
preventDefaultOn : String -> Decoder ( msg, Bool ) -> Mixin msg
String
-> Decoder
{ message : msg
, stopPropagation : Bool
, preventDefault : Bool
}
-> Mixin msg

Alternetive to Html.Events.custom.