Module
DOM.Classy.Event
- Package
- purescript-dom-classy
- Repository
- garyb/purescript-dom-classy
#currentTarget Source
currentTarget :: forall e. IsEvent e => e -> Node
The element that the event listener was added to.
#eventPhase Source
eventPhase :: forall e. IsEvent e => Partial => e -> EventPhase
Indicates which phase of the event flow that is currently being processed for the event.
#eventPhaseIndex Source
eventPhaseIndex :: forall e. IsEvent e => e -> Int
The integer value for the current event phase.
#stopPropagation Source
stopPropagation :: forall eff e. IsEvent e => e -> Eff (dom :: DOM | eff) Unit
Prevents the event from bubbling up to futher event listeners. Other event listeners on the current target will still fire.
#stopImmediatePropagation Source
stopImmediatePropagation :: forall eff e. IsEvent e => e -> Eff (dom :: DOM | eff) 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 :: forall e. IsEvent e => e -> Boolean
Indicates whether the event can be cancelled.
#preventDefault Source
preventDefault :: forall eff e. IsEvent e => e -> Eff (dom :: DOM | eff) Unit
Cancels the event if it can be cancelled.
#defaultPrevented Source
defaultPrevented :: forall e. IsEvent e => e -> Boolean
Indicates whether preventDefault
was called on the event.