miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Html.Event

Description

 
Synopsis

Mouse

onClickWith :: (DOMRef -> action) -> Attribute action Source #

https://developer.mozilla.org/en-US/docs/Web/Events/click Like onClick, but passes the DOM reference along (akin to getElementBydId).

onClickWithOptions :: Options -> action -> Attribute action Source #

https://developer.mozilla.org/en-US/docs/Web/Events/click Like onClick, but passes the DOM reference along (akin to getElementBydId).

onContextMenuWithOptions :: Options -> action -> Attribute action Source #

https://developer.mozilla.org/en-US/docs/Web/Events/contextmenu

This can be used to disable right-click context menu from appearing

div_ [ onContextMenuWithOptions NoOp defaultOptions { preventDefault = False } ] [ ]

Since: 1.9.0.0

Keyboard

Form

Focus

onBlur :: action -> Attribute action Source #

blur event defined with custom options

https://developer.mozilla.org/en-US/docs/Web/Events/blur

Drag

Drop

Select

Pointer

Media

onEmptied :: action -> Attribute action Source #

onEmptiedWith :: (Media -> action) -> Attribute action Source #

Touch