Ui.Events

Mouse

onClick : msg -> Attribute msg
onDoubleClick : msg -> Attribute msg
onMouseDown : msg -> Attribute msg
onMouseUp : msg -> Attribute msg
onMouseEnter : msg -> Attribute msg
onMouseLeave : msg -> Attribute msg
onMouseMove : msg -> Attribute msg

Focus

onFocus : msg -> Attribute msg
onLoseFocus : msg -> Attribute msg

Keyboard

onKey : Key -> msg -> Attribute msg
type Key
key : String -> Key

Custom

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