Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for all ReaderEvents.

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly cancelable

cancelable: boolean

If this event's default action is cancelable. See respective engine event for its definition of default action.

Readonly defaultPrevented

defaultPrevented: boolean

If this event's default action has been canceled/prevented by a call to preventDefault()

Readonly immediatePropagationStopped

immediatePropagationStopped: boolean

True if stopImmediatePropagation() was called on this event.

Readonly isTrusted

isTrusted: boolean

If this event runs in a "trusted" context, i.e. the event callback is executed during a user-generated event such as "click" or "pointerdown".

Readonly propagationStopped

propagationStopped: boolean

True if stopPropagation() was called on this event.

Readonly readerView

readerView: IReaderView

The ReaderView instance this event is related to, if any.

Readonly type

The type of event.

Methods

preventDefault

  • preventDefault(): void
  • Prevent the event's default action. See the respective engine event for its definition of default action.

    Returns void

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • For this particular event, no other listener will be called. Neither those attached on the same object, nor those attached on the reading system which will be traversed later.

    Returns void

stopPropagation

  • stopPropagation(): void
  • Stops the propagation of events further along in the Reading System. Listeners attached on the same object is still called.

    Returns void

toJSON

Generated using TypeDoc