(Vegvisir 2, Vegvisir 3)

Navigation.options

Override default Vegvisir navigation behavior.

Description

This object should be passed as the second argument when constructing a vegvisir.Navigation instance.

Parameters

pushHistory

This option has no default value:

The default behavior of any Vegvisir top navigation is to push the new URL to the history stack. Ie. History API entry and browser pathname changes.

Any navigation that is not a top navigation will not push to the history stack.


By setting the pushHistory option to:

Examples

Basic usage

Here is an example the embeds an SVG file directly on a page.

This can come in handy for inlining small vector icons.

By using VV::css() inside a style, we've enabled this stylesheet for that specific page.