Options
All
  • Public
  • Public/Protected
  • All
Menu

EngineEvent used with the "navigationIntent" event type. Fired when a "navigation intent" occurs that was NOT initiated by a call to ReaderView.next(), ReaderView.previous(), ReaderView.goToStart() or ReaderView.goTo().

Some examples are:

  • User clicks a link in the publication.
  • A scripted content document has triggered navigation.

The default action by the reading system is to navigate to the intended locator, but only if the locator points to a ReaderDocument assigned to the ReaderView. Otherwise, nothing is done.

To prevent the default behaviour, call preventDefault().

Hierarchy

Implemented by

Index

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 internalNavigation

internalNavigation: boolean

If the locator points to a ReaderDocument in the ReaderView.

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 locator

locator: ILocator

The locator for the navigation.

Readonly propagationStopped

propagationStopped: boolean

True if stopPropagation() was called on this event.

Readonly readerDocument

readerDocument: IReaderDocument

The target ReaderDocument to navigate to. This field is only set if the locator points to a ReaderDocument within a ReaderPublication loaded in the ReadingSystemEngine.

Readonly readerView

readerView: IReaderView

The ReaderView instance this event is related to.

Readonly relatedEvent

relatedEvent: IMouseEngineEvent

The MouseEngineEvent that triggered this navigation intent if available.

Readonly sourceReaderDocument

sourceReaderDocument: IReaderDocument

The source ReaderDocument where the event was triggered. This field is only set if the locator points to a ReaderDocument within a ReaderPublication loaded in the ReadingSystemEngine.

Readonly type

The type of event.

Methods

preventDefault

  • preventDefault(): void

stopImmediatePropagation

  • stopImmediatePropagation(): void

stopPropagation

  • stopPropagation(): void
  • Stops this event from propagating to listeners on the ReadingSystemEngine instance, if called from a listener added to a ReaderView instance. If the event has already propagated to the ReadingSystemEngine instance, calling this method has no effect.

    Returns void

toJSON

Generated using TypeDoc