Liking cljdoc? Tell your friends :D

web.CustomEvent

This interface inherits properties from its parent, web.Event:

This interface inherits properties from its parent, `web.Event`:
raw docstring

bubblescljs

(bubbles this)

Property.

[Read Only]

The bubbles read-only property of the web.Event interface indicates the event bubbles up through the DOM or not.

var doesItBubble = event.bubbles;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles

Property.

[Read Only]

The bubbles read-only property of the `web.Event` interface indicates
the event bubbles up through the DOM or not.

`var doesItBubble = event.bubbles;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles`
sourceraw docstring

cancel-bubblecljs

(cancel-bubble this)

Property.

The cancelBubble property of the web.Event interface is a historical to Event.stopPropagation(). Setting its value to true before from an event handler prevents propagation of the event. In later setting this to false does nothing. See Browser compatibility details.

event.cancelBubble = bool; var bool = event.cancelBubble;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble

Property.

The cancelBubble property of the `web.Event` interface is a historical
to `Event.stopPropagation()`. Setting its value to true before
from an event handler prevents propagation of the event. In later
setting this to false does nothing. See Browser compatibility
details.

`event.cancelBubble = bool;
var bool = event.cancelBubble;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble`
sourceraw docstring

cancelablecljs

(cancelable this)

Property.

[Read Only]

The cancelable read-only property of the web.Event interface whether the event can be canceled, and therefore prevented as the event never happened.

bool = event.cancelable;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable

Property.

[Read Only]

The cancelable read-only property of the `web.Event` interface
whether the event can be canceled, and therefore prevented as
the event never happened.

`bool = event.cancelable;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable`
sourceraw docstring

composedcljs

(composed this)

Property.

[Read Only]

The read-only composed property of the web.Event interface a js.Boolean which indicates whether or not the event will across the shadow DOM boundary into the standard DOM.

var composed = Event.composed;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composed

Property.

[Read Only]

The read-only composed property of the `web.Event` interface
a `js.Boolean` which indicates whether or not the event will
across the shadow DOM boundary into the standard DOM.

`var composed = Event.composed;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composed`
sourceraw docstring

composed-pathcljs

(composed-path this)

Method.

The composedPath() method of the web.Event interface returns event’s path which is an array of the objects on which listeners be invoked. This does not include nodes in shadow trees if the root was created with its ShadowRoot.mode closed.

var composed = Event.composedPath();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath

Method.

The composedPath() method of the `web.Event` interface returns
event’s path which is an array of the objects on which listeners
be invoked. This does not include nodes in shadow trees if the
root was created with its `ShadowRoot.mode` closed.

`var composed = Event.composedPath();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath`
sourceraw docstring

constructorcljs

(constructor & args)

Constructor.

The CustomEvent() constructor creates a new web.CustomEvent.

typeArg A web.DOMString representing the name of the event. customEventInit Optional A CustomEventInit dictionary, having the following fields:

"detail", optional and defaulting to null, of type any, that is an event-dependent value associated with the event.

The CustomEventInit dictionary also accepts fields from the EventInit dictionary.

See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent

Constructor.

The CustomEvent() constructor creates a new `web.CustomEvent`.

typeArg
A `web.DOMString` representing the name of the event.
customEventInit Optional
A CustomEventInit dictionary, having the following fields:

\"detail\", optional and defaulting to null, of type any, that is an event-dependent value associated with the event.



The CustomEventInit dictionary also accepts fields from the `EventInit` dictionary.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent`
sourceraw docstring

create-eventcljs

(create-event this & args)

Method.

[Deprecated]

Creates a new event, which must then be initialized by calling initEvent() method.

`document.createEvent(type)

type A string indicating the event type to create.

This method returns a new DOM web.Event object of the specified type, which must be initialized before use.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/createEvent

Method.

[Deprecated]

Creates a new event, which must then be initialized by calling
initEvent() method.

`document.createEvent(type)


type
A string indicating the event type to create.


This method returns a new DOM `web.Event` object of the specified type, which must be initialized before use.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/createEvent`
sourceraw docstring

current-targetcljs

(current-target this)

Property.

[Read Only]

The currentTarget read-only property of the web.Event interface the current target for the event, as the event traverses the It always refers to the element to which the event handler has attached, as opposed to Event.target, which identifies the on which the event occurred and which may be its direct descendent.

var currentEventTarget = event.currentTarget;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget

Property.

[Read Only]

The currentTarget read-only property of the `web.Event` interface
the current target for the event, as the event traverses the
It always refers to the element to which the event handler has
attached, as opposed to `Event.target`, which identifies the
on which the event occurred and which may be its direct descendent.

`var currentEventTarget = event.currentTarget;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget`
sourceraw docstring

deep-pathcljs

(deep-path this)

Property.

An Array of DOM Nodes through which the event has bubbled.

Property.

An Array of DOM Nodes through which the event has bubbled.
sourceraw docstring

default-preventedcljs

(default-prevented this)

Property.

[Read Only]

The defaultPrevented read-only property of the web.Event interface a js.Boolean indicating whether or not Event.preventDefault() called on the event.

var defaultWasPrevented = event.defaultPrevented;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented

Property.

[Read Only]

The defaultPrevented read-only property of the `web.Event` interface
a `js.Boolean` indicating whether or not `Event.preventDefault()`
called on the event.

`var defaultWasPrevented = event.defaultPrevented;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented`
sourceraw docstring

detailcljs

(detail this)

Property.

[Read Only]

The detail readonly property of the web.CustomEvent interface any data passed when initializing the event.

let myDetail = customEventInstance.detail;

See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail

Property.

[Read Only]

The detail readonly property of the `web.CustomEvent` interface
any data passed when initializing the event.

`let myDetail = customEventInstance.detail;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail`
sourceraw docstring

event-phasecljs

(event-phase this)

Property.

[Read Only]

The eventPhase read-only property of the web.Event interface which phase of the event flow is currently being evaluated.

var phase = event.eventPhase;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase

Property.

[Read Only]

The eventPhase read-only property of the `web.Event` interface
which phase of the event flow is currently being evaluated.

`var phase = event.eventPhase;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase`
sourceraw docstring

explicit-original-targetcljs

(explicit-original-target this)

Property.

[Read Only] [Non Standard]

The explicit original target of the event. (Mozilla-specific)

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget

Property.

[Read Only]
[Non Standard]

The explicit original target of the event. (Mozilla-specific)

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget`
sourceraw docstring

get-prevent-defaultcljs

(get-prevent-default this & args)

Method.

Non-standard. Returns the value of Event.defaultPrevented. Use instead.

Method.

Non-standard. Returns the value of Event.defaultPrevented. Use
instead.
sourceraw docstring

init-custom-eventcljs

(init-custom-event this type can-bubble cancelable detail)

Method.

[Deprecated]

The CustomEvent.initCustomEvent() method initializes a CustomEvent If the event has already been dispatched, this method does nothing.

event.initCustomEvent(type, canBubble, cancelable, detail);

See also: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent

Method.

[Deprecated]

The CustomEvent.initCustomEvent() method initializes a CustomEvent
If the event has already been dispatched, this method does nothing.

`event.initCustomEvent(type, canBubble, cancelable, detail);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent`
sourceraw docstring

init-eventcljs

(init-event this & args)

Method.

[Deprecated]

The Event.initEvent() method is used to initialize the value an event created using Document.createEvent().

`event.initEvent(type, bubbles, cancelable);

type Is a web.DOMString defining the type of event. bubbles Is a js.Boolean deciding whether the event should bubble up through the event chain or not. Once set, the read-only property Event.bubbles will give its value. cancelable Is a js.Boolean defining whether the event can be canceled. Once set, the read-only property Event.cancelable will give its value.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent

Method.

[Deprecated]

The Event.initEvent() method is used to initialize the value
an `event` created using `Document.createEvent()`.

`event.initEvent(type, bubbles, cancelable);


type
Is a `web.DOMString` defining the type of event.
bubbles
Is a `js.Boolean` deciding whether the event should bubble up through the event chain or not. Once set, the read-only property `Event.bubbles` will give its value.
cancelable
Is a `js.Boolean` defining whether the event can be canceled. Once set, the read-only property `Event.cancelable` will give its value.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent`
sourceraw docstring

is-trustedcljs

(is-trusted this)

Property.

[Read Only]

The isTrusted read-only property of the web.Event interface a js.Boolean that is true when the event was generated by a action, and false when the event was created or modified by a or dispatched via EventTarget.dispatchEvent().

var eventIsTrusted = event.isTrusted;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted

Property.

[Read Only]

The isTrusted read-only property of the `web.Event` interface
a `js.Boolean` that is true when the event was generated by a
action, and false when the event was created or modified by a
or dispatched via `EventTarget.dispatchEvent()`.

`var eventIsTrusted = event.isTrusted;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted`
sourceraw docstring

original-targetcljs

(original-target this)

Property.

[Read Only] [Non Standard]

The original target of the event before any retargetings. (Mozilla-specific)

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/originalTarget

Property.

[Read Only]
[Non Standard]

The original target of the event before any retargetings. (Mozilla-specific)

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/originalTarget`
sourceraw docstring

prevent-bubblecljs

(prevent-bubble this & args)

Method.

Prevents the event from bubbling. Obsolete, use event.stopPropagation

Method.

Prevents the event from bubbling. Obsolete, use event.stopPropagation
sourceraw docstring

prevent-capturecljs

(prevent-capture this & args)

Method.

Obsolete, use event.stopPropagation instead.

Method.

Obsolete, use event.stopPropagation instead.
sourceraw docstring

prevent-defaultcljs

(prevent-default this)

Method.

The web.Event interface's preventDefault() method tells the agent that if the event does not get explicitly handled, its action should not be taken as it normally would be.

event.preventDefault();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault

Method.

The `web.Event` interface's preventDefault() method tells the
agent that if the event does not get explicitly handled, its
action should not be taken as it normally would be.

`event.preventDefault();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault`
sourceraw docstring

return-valuecljs

(return-value this)

Property.

The web.Event property returnValue indicates whether the default for this event has been prevented or not.

`event.returnValue = bool;

var bool = event.returnValue;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue

Property.

The `web.Event` property returnValue indicates whether the default
for this event has been prevented or not.

`event.returnValue = bool;

var bool = event.returnValue;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue`
sourceraw docstring

scopedcljs

(scoped this)

Property.

A Boolean indicating whether the given event will bubble across the shadow root into the standard DOM. This property has been to composed.

Property.

A Boolean indicating whether the given event will bubble across
the shadow root into the standard DOM. This property has been
to composed.
sourceraw docstring

set-cancel-bubble!cljs

(set-cancel-bubble! this val)

Property.

The cancelBubble property of the web.Event interface is a historical to Event.stopPropagation(). Setting its value to true before from an event handler prevents propagation of the event. In later setting this to false does nothing. See Browser compatibility details.

event.cancelBubble = bool; var bool = event.cancelBubble;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble

Property.

The cancelBubble property of the `web.Event` interface is a historical
to `Event.stopPropagation()`. Setting its value to true before
from an event handler prevents propagation of the event. In later
setting this to false does nothing. See Browser compatibility
details.

`event.cancelBubble = bool;
var bool = event.cancelBubble;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble`
sourceraw docstring

set-deep-path!cljs

(set-deep-path! this val)

Property.

An Array of DOM Nodes through which the event has bubbled.

Property.

An Array of DOM Nodes through which the event has bubbled.
sourceraw docstring

set-return-value!cljs

(set-return-value! this val)

Property.

The web.Event property returnValue indicates whether the default for this event has been prevented or not.

`event.returnValue = bool;

var bool = event.returnValue;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue

Property.

The `web.Event` property returnValue indicates whether the default
for this event has been prevented or not.

`event.returnValue = bool;

var bool = event.returnValue;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/returnValue`
sourceraw docstring

set-scoped!cljs

(set-scoped! this val)

Property.

A Boolean indicating whether the given event will bubble across the shadow root into the standard DOM. This property has been to composed.

Property.

A Boolean indicating whether the given event will bubble across
the shadow root into the standard DOM. This property has been
to composed.
sourceraw docstring

set-src-element!cljs

(set-src-element! this val)

Property.

Event.srcElement is a proprietary alias (implemented in Internet for the standard Event.target property, which is supported some other browsers for web compatibility purposes.

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement

Property.

Event.srcElement is a proprietary alias (implemented in Internet
for the standard `Event.target` property, which is supported
some other browsers for web compatibility purposes.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement`
sourceraw docstring

src-elementcljs

(src-element this)

Property.

Event.srcElement is a proprietary alias (implemented in Internet for the standard Event.target property, which is supported some other browsers for web compatibility purposes.

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement

Property.

Event.srcElement is a proprietary alias (implemented in Internet
for the standard `Event.target` property, which is supported
some other browsers for web compatibility purposes.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/srcElement`
sourceraw docstring

stop-immediate-propagationcljs

(stop-immediate-propagation this)

Method.

The stopImmediatePropagation() method of the web.Event interface other listeners of the same event from being called.

event.stopImmediatePropagation();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation

Method.

The stopImmediatePropagation() method of the `web.Event` interface
other listeners of the same event from being called.

`event.stopImmediatePropagation();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation`
sourceraw docstring

stop-propagationcljs

(stop-propagation this)

Method.

The stopPropagation() method of the web.Event interface prevents propagation of the current event in the capturing and bubbling

event.stopPropagation();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation

Method.

The stopPropagation() method of the `web.Event` interface prevents
propagation of the current event in the capturing and bubbling

`event.stopPropagation();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation`
sourceraw docstring

targetcljs

(target this)

Property.

[Read Only]

The target property of the web.Event interface is a reference the object that dispatched the event. It is different from Event.currentTarget the event handler is called during the bubbling or capturing of the event.

var theTarget = event.target;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/target

Property.

[Read Only]

The target property of the `web.Event` interface is a reference
the object that dispatched the event. It is different from `Event.currentTarget`
the event handler is called during the bubbling or capturing
of the event.

`var theTarget = event.target;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/target`
sourceraw docstring

time-stampcljs

(time-stamp this)

Property.

[Read Only]

The timeStamp read-only property of the web.Event interface the time (in milliseconds) at which the event was created.

var time = event.timeStamp;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp

Property.

[Read Only]

The timeStamp read-only property of the `web.Event` interface
the time (in milliseconds) at which the event was created.

`var time = event.timeStamp;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp`
sourceraw docstring

typecljs

(type this)

Property.

[Read Only]

The type read-only property of the web.Event interface returns string containing the event's type. It is set when the event constructed and is the name commonly used to refer to the specific such as click, load, or error.

let eventType = event.type;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Event/type

Property.

[Read Only]

The type read-only property of the `web.Event` interface returns
string containing the event's type. It is set when the event
constructed and is the name commonly used to refer to the specific
such as click, load, or error.

`let eventType = event.type;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Event/type`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close