Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Event

Provides event data and event operations

Hierarchy

  • Event

Index

Constructors

constructor

  • new Event(type: string, object: unknown, currentTarget: unknown, target: unknown, originalEvent: OriginalEvent | null): Event

Properties

Private _isDefaultPrevented

_isDefaultPrevented: boolean

Private _isImmediatePropagationStopped

_isImmediatePropagationStopped: boolean

Private _isPropagationStopped

_isPropagationStopped: boolean

currentTarget

currentTarget: unknown

Current target of this event

object

object: unknown

Object who triggered this event

originalEvent

originalEvent: OriginalEvent | null

Original event object

target

target: unknown

Origin of this event

type

type: string

Event name

Methods

isDefaultPrevented

  • isDefaultPrevented(): boolean

isImmediatePropagationStopped

  • isImmediatePropagationStopped(): boolean
  • Returns true if wcardinal.event.Event#stopImmediatePropagation was called previously.

    Returns boolean

    true if wcardinal.event.Event#stopImmediatePropagation was called previously

isPropagationStopped

  • isPropagationStopped(): boolean

preventDefault

  • preventDefault(): Event

stopImmediatePropagation

  • stopImmediatePropagation(): Event

stopPropagation

  • stopPropagation(): Event

Generated using TypeDoc