File

core/breadcrumb/breadcrumb.service.ts

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(item: Breadcrumb)

Adds a new item to the action bar in the header.

Parameters :
Name Type Optional Description
item Breadcrumb No

The item to add.

Returns : void
remove
remove(item: Breadcrumb)

Removes an action bar item from the header.

Parameters :
Name Type Optional Description
item Breadcrumb No

The item to remove.

Returns : void
selectPreferredByPath
selectPreferredByPath(path: string)

Sets the crumb that contains that path to the top.

Parameters :
Name Type Optional Description
path string No

The path to prefer.

Returns : void
Protected setupItemsObservable
setupItemsObservable()
sortByPreferredPath
sortByPreferredPath(breadcrumbs)
Parameters :
Name Optional
breadcrumbs No
Returns : any
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

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()

results matching ""

    No results matching ""