Options
All
  • Public
  • Public/Protected
  • All
Menu
deprecated

‚Äč Deprecated. Use ``.

Hierarchy

Index

Properties

AT_TARGET

AT_TARGET: number

BUBBLING_PHASE

BUBBLING_PHASE: number

CAPTURING_PHASE

CAPTURING_PHASE: number

NONE

NONE: number

altKey

altKey: boolean

bubbles

bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

button

button: number

cancelBubble

cancelBubble: boolean

cancelable

cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

char

char: string
deprecated

charCode

charCode: number
deprecated

clientX

clientX: number

clientY

clientY: number

composed

composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

ctrlKey

ctrlKey: boolean

currentTarget

currentTarget: Element

The current DOM element within the event bubbling phase.

see

``

data

data: any

An optional object of data passed to an event method when the current executing handler is bound.

see

``

defaultPrevented

defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

delegateTarget

delegateTarget: Element

The element where the currently-called jQuery event handler was attached.

see

``

eventPhase

eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

isTrusted

isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

key

key: string

keyCode

keyCode: number
deprecated

metaKey

metaKey: boolean

Indicates whether the META key was pressed when the event fired.

see

``

namespace

namespace: string

The namespace specified when the event was triggered.

see

``

offsetX

offsetX: number

offsetY

offsetY: number

originalEvent

originalEvent: Event

The browser's original Event object.

see

``

pageX

pageX: number

The mouse position relative to the left edge of the document.

see

``

pageY

pageY: number

The mouse position relative to the top edge of the document.

see

``

relatedTarget

relatedTarget: Element

The other DOM element involved in the event, if any.

see

``

result

result: any

The last value returned by an event handler that was triggered by this event, unless the value was undefined.

see

``

returnValue

returnValue: boolean

screenX

screenX: number

screenY

screenY: number

shiftKey

shiftKey: boolean

srcElement

srcElement: EventTarget | null
deprecated

target

target: Element

The DOM element that initiated the event.

see

``

timeStamp

timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

type

type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

which

which: number

For key or mouse events, this property indicates the specific key or button that was pressed.

see

``

Methods

composedPath

  • Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

    Returns EventTarget[]

initEvent

  • initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void
  • Parameters

    • type: string
    • Optional bubbles: boolean
    • Optional cancelable: boolean

    Returns void

isDefaultPrevented

  • isDefaultPrevented(): boolean

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean

isPropagationStopped

  • isPropagationStopped(): boolean

preventDefault

  • preventDefault(): any

stopImmediatePropagation

  • stopImmediatePropagation(): void

stopPropagation

  • stopPropagation(): void

Generated using TypeDoc