Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- mapActions :: (act -> act') -> Markup act -> Markup act'
- onKeyDown :: act -> Attribute act
- onKeyUp :: act -> Attribute act
- onKeyPress :: act -> Attribute act
- onFocus :: act -> Attribute act
- onBlur :: act -> Attribute act
- onValueChange :: act -> Attribute act
- onCheckedChange :: act -> Attribute act
- onSelectedChange :: act -> Attribute act
- onSubmit :: act -> Attribute act
- onClick :: act -> Attribute act
- onDoubleClick :: act -> Attribute act
- onMouseDown :: act -> Attribute act
- onMouseUp :: act -> Attribute act
- onMouseMove :: act -> Attribute act
- onMouseEnter :: act -> Attribute act
- onMouseLeave :: act -> Attribute act
- onMouseOver :: act -> Attribute act
- onMouseOut :: act -> Attribute act
- onScroll :: act -> Attribute act
- onWheel :: act -> Attribute act
Event handling
mapActions :: (act -> act') -> Markup act -> Markup act' Source #
Modify all event handlers attached to a Markup
tree so that the given
function is applied to the return values of their callbacks.
Keyboard events
onKeyDown :: act -> Attribute act Source #
The user has pressed a physical key while the target element was focused.
onKeyUp :: act -> Attribute act Source #
The user has released a phyiscal key while the target element was focused.
onKeyPress :: act -> Attribute act Source #
The user has input some ASCII character while the target element was
Focus events
Form events
onValueChange :: act -> Attribute act Source #
onCheckedChange :: act -> Attribute act Source #
The checked
property of the target element has changed. This handler is
supported for input elements of type checkbox
or radio
.
onSelectedChange :: act -> Attribute act Source #
The selected
property of the the target element has changed. This
handler is supported for option elements.
onSubmit :: act -> Attribute act Source #
The user has submitted the target form. This handler is supported for form elements.
Mouse events
onClick :: act -> Attribute act Source #
A simplified version of onClick
which watches for the LeftButton
only
and ignores the cursor position.
onDoubleClick :: act -> Attribute act Source #
A simplified version of onDoubleClick
which watches for the LeftButton
only and ignores the cursor position.
onMouseDown :: act -> Attribute act Source #
A simplified version of onMouseDown
which watches for the LeftButton
only and ignores the cursor position.
onMouseUp :: act -> Attribute act Source #
A simplified version of onMouseUp
which watches for the LeftButton
only and ignores the cursor position.
onMouseMove :: act -> Attribute act Source #
The mouse cursor has moved while positioned over the target element. The mouse position at the time the event was fired is passed as a parameter to the callback.
onMouseEnter :: act -> Attribute act Source #
The mouse cursor has entered the region occupied by the target element. The mouse position at the time the event was fired is passed as a parameter to the callback.
onMouseLeave :: act -> Attribute act Source #
The mouse cursor has left the region occupied by the target element. The mouse position at the time the event was fired is passed as a parameter to the callback.
onMouseOver :: act -> Attribute act Source #
Like MouseEnter, but handles bubbling differently.
onMouseOut :: act -> Attribute act Source #
Like MouseLeave, but handles bubbling differently.
UI Events
onScroll :: act -> Attribute act Source #
The the scroll-position of the page has changed. The amount by which it has changed (in lines) is passed as a parameter to the callback.