Module
Control.Monad.Eff.JQuery
- Package
- purescript-jquery
- Repository
- paf31/purescript-jquery
This module defines foreign types and functions for working with the jQuery library.
#JQueryEvent Source
data JQueryEvent :: Type
Type of jQuery event objects.
#preventDefault Source
preventDefault :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Unit
Prevent the default action for an event.
#stopPropagation Source
stopPropagation :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Unit
Stop propagation an event.
#stopImmediatePropagation Source
stopImmediatePropagation :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Unit
Stop immediate propagation an event.
#getTarget Source
getTarget :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) JQuery
Get the target
propery of the event object.
#getCurrentTarget Source
getCurrentTarget :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) JQuery
Get the currentTarget
property from the event object.
#getPageX Source
getPageX :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Number
Get the pageX
property from the event object.
#getPageY Source
getPageY :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Number
Get the pageY
property from the event object.
#getWhich Source
getWhich :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Int
Get the which
property from the event object.
#getMetaKey Source
getMetaKey :: forall eff. JQueryEvent -> Eff (dom :: DOM | eff) Boolean
Get the metaKey
property from the event object.
- Modules
- Control.
Monad. Eff. JQuery