(Vegvisir 2, Vegvisir 3)

vegvisir.Navigation() constructor

The Vegvisir navigation constructor is used to create a new instance of Navigation. This is the first step to creating a custom navigation.

Description

Parameters

url

A URL object or string with to a location on the same origin as the initiator.

options

An optional object containing vegvisir.Navigation.options overrides.

Return values

Navigation instance

A Navigation object instance. Use the instance method .navigate() to navigate an, or many element(s) in the DOM.

Examples

Basic usage

Different ways to initialize vegvisir.Navigation with a location that will open /public/some-page.php relative from project root.

With strings:

With URL objects: