Module

Web.Event.CustomEvent

Package
purescript-web-events
Repository
purescript-web/purescript-web-events

#CustomEvent Source

#new' Source

new' :: forall a. EventType -> Maybe a -> Effect CustomEvent

Create a new CustomEvent, storing some data in its detail field, and using defaults for everything else.

#newOptionsImpl Source

newOptionsImpl :: forall a. EventType -> { bubbles :: Boolean, cancelable :: Boolean, composed :: Boolean, detail :: Nullable a } -> Effect CustomEvent

Create a new CustomEvent with all of its constructor's options exposed.

#newWithOptions Source

newWithOptions :: forall a. EventType -> { bubbles :: Boolean, cancelable :: Boolean, composed :: Boolean, detail :: Maybe a } -> Effect CustomEvent