Module
Web.Event.Event
- Package
- purescript-web-events
- Repository
- purescript-web/purescript-web-events
#currentTarget Source
currentTarget :: Event -> Maybe EventTarget
The element that the event listener was added to.
#eventPhase Source
eventPhase :: Partial => Event -> EventPhase
Indicates which phase of the event flow that is currently being processed for the event.
#stopPropagation Source
stopPropagation :: Event -> Effect Unit
Prevents the event from bubbling up to futher event listeners. Other event listeners on the current target will still fire.
#stopImmediatePropagation Source
stopImmediatePropagation :: Event -> Effect Unit
Prevents all other listeners for the event from being called. This includes event listeners added to the current target after the current listener.
#cancelable Source
cancelable :: Event -> Boolean
Indicates whether the event can be cancelled.
#preventDefault Source
preventDefault :: Event -> Effect Unit
Cancels the event if it can be cancelled.
#defaultPrevented Source
defaultPrevented :: Event -> Boolean
Indicates whether preventDefault
was called on the event.