(Vegvisir 2, Vegvisir 3)
Navigation.options
Override default Vegvisir navigation behavior.
This object should be passed as the second argument when constructing a vegvisir.Navigation
instance.
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:
true
Force all navigations with .navigate()
on this instance will push to the history stack. Including non-top navigations.
false
Force no navigations with .navigate()
on this instance will push to the history stack. Including top navigations.
Here is an example the embeds an SVG file directly on a page.
This can come in handy for inlining small vector icons.
= Snippet::put("docs/API/PHP/VV/embed/example-1-0", Snippet::PHP) ?> = Snippet::put("docs/API/PHP/VV/embed/example-1-1", Snippet::PHP) ?>By using VV::css()
inside a style
, we've enabled this stylesheet for that specific page.