Html.Events
HTML & web
Event attributes for shared TEA views. On the BEAM they are inert (false attrs) so SSR markup stays static; the JS client attaches real listeners on hydrate. Prefer these names so one view compiles for both targets.
Values
onClick
onClick : msg -> Attribute msgClick handler (inert on SSR).
Examples
onClick ClickedonDoubleClick
onDoubleClick : msg -> Attribute msgDouble-click handler (inert on SSR).
Examples
onDoubleClick OpenedonMouseDown
onMouseDown : msg -> Attribute msgMouse-down handler (inert on SSR).
Examples
onMouseDown PressedonMouseUp
onMouseUp : msg -> Attribute msgMouse-up handler (inert on SSR).
Examples
onMouseUp ReleasedonMouseEnter
onMouseEnter : msg -> Attribute msgMouse-enter handler (inert on SSR).
Examples
onMouseEnter EnteredonMouseLeave
onMouseLeave : msg -> Attribute msgMouse-leave handler (inert on SSR).
Examples
onMouseLeave LeftonMouseOver
onMouseOver : msg -> Attribute msgMouse-over handler (inert on SSR).
Examples
onMouseOver HoveredonMouseOut
onMouseOut : msg -> Attribute msgMouse-out handler (inert on SSR).
Examples
onMouseOut UnhoveredonSubmit
onSubmit : msg -> Attribute msgForm submit handler (inert on SSR).
Examples
onSubmit SubmittedonBlur
onBlur : msg -> Attribute msgBlur handler (inert on SSR).
Examples
onBlur BlurredonFocus
onFocus : msg -> Attribute msgFocus handler (inert on SSR).
Examples
onFocus FocusedonCheck
onCheck : msg -> Attribute msgCheckbox change handler (inert on SSR).
Examples
onCheck ToggledonInput
onInput : (String -> msg) -> Attribute msgInput handler (inert on SSR).
Examples
onInput Changed