File navigation provider
: shell
: file-navigation-provider
: navigation-provider
: /modules/core/navigation/services/file-navigation-provider.js
FileNavigationProvider
Kind: global class
new FileNavigationProvider(scope)
Builds menu items from JSON files.
| Param | Type | Description |
|---|---|---|
| scope | object |
The scope. |
fileNavigationProvider.addRootItems(done)
Adds navigation items for a menu.
Kind: instance method of FileNavigationProvider
| Param | Type | Description |
|---|---|---|
| [context.menu] | string |
The name of the menu. |
| [context.items] | Array |
The array of menu top-level items. |
| done | function |
The callback function. |