VB Switcher Events

vbBeforePopState

This event is dispatched when the browser history changes (Back and Forward buttons), and it is used for two purposes:

  1. To be notified when a change to the switcher current item will be made due to a browser Back or Forward button.
  2. Cancel the default handling by setting preventDefault to "true".

Properties

All of the event payloads listed below can be found under event.detail.

Name (Type) Description
item (String)

The potential new current item.

previousItem (String)

The previous item.

pagePath (String)

The path of the potential page to be display.

previousPagePath (String)

The path of the previous page displayed.