Interface Event<TTarget, TData>

Type parameters

  • TTarget

  • TData

Hierarchy

Index

Properties

currentTarget

currentTarget: TTarget

The current DOM element within the event bubbling phase.

see

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

since

1.3

data

data: TData

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

see

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

since

1.1

delegateTarget

delegateTarget: TTarget

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

see

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

since

1.7

metaKey

metaKey: boolean

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

see

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

since

1.0.4

namespace

namespace: string

The namespace specified when the event was triggered.

see

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

since

1.4.3

originalEvent

originalEvent: _Event

pageX

pageX: number

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

see

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

since

1.0.4

pageY

pageY: number

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

see

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

since

1.0.4

relatedTarget

relatedTarget: TTarget | null

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

see

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

since

1.1.4

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/

since

1.3

target

target: TTarget

The DOM element that initiated the event.

see

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

since

1.0

timeStamp

timeStamp: number

The difference in milliseconds between the time the browser created the event and January 1, 1970.

see

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

since

1.2.6

type

type: string

Describes the nature of the event.

see

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

since

1.0

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/

since

1.1.3

Methods

isDefaultPrevented

  • isDefaultPrevented(): boolean

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean

isPropagationStopped

  • isPropagationStopped(): boolean

preventDefault

  • preventDefault(): void

stopImmediatePropagation

  • stopImmediatePropagation(): void

stopPropagation

  • stopPropagation(): void