(Vegvisir 3)
vegvisir.Navigation.EVENTSVarious navigation CustomEvents that can be listened for.
All events will also fire on document as a catch-all interface.
navstartedThis CustomEvent will be fired on the navigation target and document when a navigation is started with .navigate().
navfinishedThis CustomEvent will be fired on the navigation target and document when a navigation with .navigate() has finished completely.
A navigation is considered finished when the page has been fully loaded and all element attributes have been updated.
CustomEvent.detail propertyAccessing the .detail property on a captured Vegvisir event will contain the following object.
targetThe target element that is used/was used for the navigation.
This example logs the target element of all navigations on this page.