Module

Web.Event.CustomEvent

#CustomEvent

#toEvent

#new'

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

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

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

Modules