File

core/drawer/drawer.service.ts

Extends

StateService

Index

Properties
Methods
Accessors

Constructor

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

Methods

add
add(node: DrawerItem)

Adds a new node to the navigator.

Parameters :
Name Type Optional Description
node DrawerItem No

Navigator node to add.

Returns : void
getDrawersForPosition$
getDrawersForPosition$(position: "right" | "left")
Parameters :
Name Type Optional
position "right" | "left" No
refresh
refresh()

Refresh the extension factories.

Returns : void
remove
remove(node: DrawerItem)

Removes a node from the navigator.

Parameters :
Name Type Optional Description
node DrawerItem No

Navigator node to remove.

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<DrawerItem>[]
Default value : []

Additional factories that can be added by plugins.

injectors
Type : []
Default value : [this.rootInjector]
items$
Type : Observable<DrawerItem[]>
Readonly state$
Default value : new BehaviorSubject<Set<DrawerItem>>(new Set<DrawerItem>())

Accessors

state
getstate()

Returns the current state.

Returns : Set<DrawerItem>

results matching ""

    No results matching ""