File

core/breadcrumb/breadcrumb.service.ts

Extends

StateService

Index

Properties
Methods
Accessors

Constructor

constructor(injector: Injector, router: Router)
Parameters :
Name Type Optional
injector Injector No
router Router 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
refresh
refresh()

Refresh the extension factories

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
sortByPreferredPath
sortByPreferredPath(breadcrumbs)
Parameters :
Name Optional
breadcrumbs No
Returns : any
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 : BreadcrumbExtension[]
Default value : []
items$
Type : Observable<Breadcrumb[]>
Readonly refreshTrigger
Default value : new Subject()
Readonly state$
Default value : new BehaviorSubject<Set<Breadcrumb>>(new Set<Breadcrumb>())

Accessors

state
getstate()

results matching ""

    No results matching ""