File

core/navigator/navigator.service.ts

Description

A service which defines the navigator.

Extends

ExtensionPointForPlugins

Index

Properties
Methods
Accessors

Constructor

constructor(rootInjector: Injector, router: Router, plugins: PluginsResolveService)
Parameters :
Name Type Optional
rootInjector Injector No
router Router No
plugins PluginsResolveService No

Methods

add
add(node: NavigatorNode)

Adds a new node to the navigator.

Parameters :
Name Type Optional Description
node NavigatorNode No

Navigator node to add.

Returns : void
openOnFirstUrl
openOnFirstUrl(node: NavigatorNode)

Checks whenever a navigator entry associated with the given URL should be expanded.

Parameters :
Name Type Optional Description
node NavigatorNode No

Navigator node.

Returns : any
remove
remove(node: NavigatorNode)

Removes a node from the navigator.

Parameters :
Name Type Optional Description
node NavigatorNode No

Navigator node to remove.

Returns : void
Protected setupItemsObservable
setupItemsObservable()
refresh
refresh()

Refresh the extension factories

Returns : void
Protected emitNewState
emitNewState()

Emits a new state.

Returns : void
map
map(mappedProperty: (undefined) => void)

Maps to a property and just returns that property.

Parameters :
Name Type Optional Description
mappedProperty function No

The property to map to.

Returns : Observable<any>

Properties

firstUrl
Default value : true

Indicates whether the menu entry associated with the given URL should be expanded.

hasItemsInNavigator$
Type : Observable<boolean>
factories
Type : ExtensionFactory<T>[]
Default value : []
Protected injectors
Type : Injector[]

All injectors to search for an extension.

items$
Type : Observable<T[]>
Readonly refresh$
Type : Observable<void>
Readonly state$
Default value : new BehaviorSubject<Set<T>>(new Set<T>())

Accessors

state
getstate()

Returns the current state.

Returns : Set<NavigatorNode>

results matching ""

    No results matching ""