Interface BaseJQueryEventObject

deprecated

​ Deprecated. Use ``.

Hierarchy

Index

Properties

AT_TARGET

AT_TARGET: number

BUBBLING_PHASE

BUBBLING_PHASE: number

CAPTURING_PHASE

CAPTURING_PHASE: number

Event

Event: object

Type declaration

  • constructor: function
    • new __type(type: string, eventInitDict?: EventInit): Event
    • Parameters

      • type: string
      • Optional eventInitDict: EventInit

      Returns Event

  • AT_TARGET: number
  • BUBBLING_PHASE: number
  • CAPTURING_PHASE: number
  • NONE: number
  • prototype: Event

NONE

NONE: number

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.

cancelBubble

cancelBubble: boolean

cancelable

cancelable: boolean

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.

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

delegateTarget

delegateTarget: Element

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

see

``

eventPhase

eventPhase: number

isTrusted

isTrusted: boolean

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

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

``

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

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

  • composedPath(): EventTarget[]
  • 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
  • Returns whether event.preventDefault() was ever called on this event object.

    see

    ``

    Returns boolean

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean
  • Returns whether event.stopImmediatePropagation() was ever called on this event object.

    see

    ``

    Returns boolean

isPropagationStopped

  • isPropagationStopped(): boolean
  • Returns whether event.stopPropagation() was ever called on this event object.

    see

    ``

    Returns boolean

preventDefault

  • preventDefault(): any
  • If this method is called, the default action of the event will not be triggered.

    see

    ``

    Returns any

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.

    see

    ``

    Returns void

stopPropagation

  • stopPropagation(): void
  • Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

    see

    ``

    Returns void