Edit this topic

File navigation provider

: shell

: navigation-provider

: file-navigation-provider

: /modules/core/navigation/services/file-navigation-provider.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/navigation/services/file-navigation-provider.js

class: FileNavigationProvider

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.

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.