fuse-navigation
is a custom built Fuse component allows you to create a multi-level collapsable
navigation. It has built-in support for translations using ngx-translate module.
<fuse-navigation></fuse-navigation>
uses a json file to populate
the entire navigation. It supports three different navigation items; Group,
Collapsable and Item. These items can be mixed and matched to create unique and complex
navigation layouts.
Navigation data can be found in src/app/navigation
folder along with its translation
files. Navigation data and its translation files are set in app.component.ts file. Check that
file for more detailed usage example.
There are two different layout options for the component; vertical
and
horizontal
. You can set the layout using the [layout]
input.
Direct modifications on the navigation data will be reflected to the component. So you can modify the json data, or even create it from scratch using your backend and the changes will reflected to the component immediately.
It's possible to change the default folded status of the navigation.
Edit the main.component.html
file and look for the [folded]
attribute on
fuse-sidebar
components.
Assigning true
to that attribute will make the vertical navigation folded by default.