Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/uuid/lib/lib.deno_runtime.d.ts>event.Event

Deprecated! UUID is part of the deno standard library
Latest
class event.Event
implements [domTypes.Event]
import { event } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { Event } = event;

Constructors

new
Event(type: string, eventInitDict?: domTypes.EventInit)

Properties

private
_canceledFlag
private
_initializedFlag
private
_inPassiveListenerFlag
private
_path
private
_stopImmediatePropagationFlag
private
_stopPropagationFlag
private
dispatchedFlag
readonly
bubbles: boolean
readonly
cancelable: boolean
readonly
cancelBubble: boolean
readonly
cancelBubbleImmediately: boolean
readonly
composed: boolean
readonly
currentTarget: domTypes.EventTarget
readonly
defaultPrevented: boolean
readonly
dispatched: boolean
readonly
eventPhase: number
readonly
initialized: boolean
readonly
isTrusted: boolean
readonly
target: domTypes.EventTarget
readonly
timeStamp: Date
readonly
type: string

Methods

Returns the event’s path (objects on which listeners will be invoked). This does not include nodes in shadow trees if the shadow root was created with its ShadowRoot.mode closed.

 event.composedPath();

Cancels the event (if it is cancelable). See https://dom.spec.whatwg.org/#set-the-canceled-flag

 event.preventDefault();

For this particular event, no other listener will be called. Neither those attached on the same element, nor those attached on elements which will be traversed later (in capture phase, for instance).

 event.stopImmediatePropagation();

Stops the propagation of events further along in the DOM.

 event.stopPropagation();