Interface BaseJQueryEventObject

deprecated

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

https://api.jquery.com/event.currentTarget/

data

data: any

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

see

https://api.jquery.com/event.data/

defaultPrevented

defaultPrevented: boolean

delegateTarget

delegateTarget: Element

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

see

https://api.jquery.com/event.delegateTarget/

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

https://api.jquery.com/event.metaKey/

namespace

namespace: string

The namespace specified when the event was triggered.

see

https://api.jquery.com/event.namespace/

originalEvent

originalEvent: Event

The browser's original Event object.

see

https://api.jquery.com/category/events/event-object/

pageX

pageX: number

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

see

https://api.jquery.com/event.pageX/

pageY

pageY: number

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

see

https://api.jquery.com/event.pageY/

relatedTarget

relatedTarget: Element

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

see

https://api.jquery.com/event.relatedTarget/

result

result: any

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

see

https://api.jquery.com/event.result/

returnValue

returnValue: boolean

srcElement

srcElement: EventTarget | null
deprecated

target

target: Element

The DOM element that initiated the event.

see

https://api.jquery.com/event.target/

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

https://api.jquery.com/event.which/

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

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean

isPropagationStopped

  • isPropagationStopped(): boolean

preventDefault

  • preventDefault(): any

stopImmediatePropagation

  • stopImmediatePropagation(): void

stopPropagation

  • stopPropagation(): void