Show:

Q.Page Class

A constructor to create Q.Page objects

Constructor

Q.Page

(
  • uriString
)

Parameters:

Item Index

Methods

Methods

push

(
  • url
  • [title=null]
)
static

Pushes a url onto the history stack via pushState with a fallback to hashChange, to be handled later by either the Q_popStateHandler or the Q_hashChangeHandler.

Parameters:

  • url String

    The url to push

  • [title=null] String optional

    The title to go with the url, to override current title

Properties

beingActivated

Boolean

Whether a page is currently being activated

beingLoaded

Boolean

Whether a page is currently being loaded

beingProcessed

Boolean

Whether we are currently in the process of unloading the existing page, and then loading and activating the new page.

Events

beforeUnload

Occurs before the page unloads

Event Payload:

  • uriString String

    The full URI string, or "Module/action"

onActivate

Occurs after the page is activated

Event Payload:

  • uriString String

    The full URI string, or "Module/action"

onLoad

Occurs when the page has begun to load

Event Payload:

  • uriString String

    The full URI string, or "Module/action"

onUnload

Occurs after the page unloads

Event Payload:

  • uriString String

    The full URI string, or "Module/action"