Safe Haskell | None |
---|
- valueChange :: Element -> Event String
- selectionChange :: Element -> Event (Maybe Int)
- checkedChange :: Element -> Event Bool
- click :: Element -> Event ()
- mousemove :: Element -> Event (Int, Int)
- mousedown :: Element -> Event (Int, Int)
- mouseup :: Element -> Event (Int, Int)
- hover :: Element -> Event ()
- leave :: Element -> Event ()
- focus :: Element -> Event ()
- blur :: Element -> Event ()
- type KeyCode = Int
- keyup :: Element -> Event KeyCode
- keydown :: Element -> Event KeyCode
Synopsis
Events on DOM elements.
Convenience events
valueChange :: Element -> Event StringSource
Event that occurs when the user changes the value of the input element.
selectionChange :: Element -> Event (Maybe Int)Source
Event that occurs when the user changes the selection of a select
element.
checkedChange :: Element -> Event BoolSource
Event that occurs when the user changes the checked status of an input element of type checkbox.
Standard DOM events
mousemove :: Element -> Event (Int, Int)Source
Event that periodically occurs while the mouse is moving over an element.
The event value represents the mouse coordinates relative to the upper left corner of the element.
Note: The body
element responds to mouse move events,
but only in the area occupied by actual content,
not the whole browser window.
mousedown :: Element -> Event (Int, Int)Source
Mouse down event. The mouse coordinates are relative to the element.