core/action/action.service.ts
A service which defines global actions.
Properties |
|
Methods |
|
Accessors |
constructor(injector: Injector, router: Router)
|
add | ||||||||
add(item: Action)
|
||||||||
Adds a new item to the actions in the header and emits a state change.
Parameters :
Returns :
void
|
refresh |
refresh()
|
Refresh the extension factories
Returns :
void
|
remove | ||||||||
remove(item: Action)
|
||||||||
Removes an action from the header and emits a state change.
Parameters :
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 :
Returns :
Observable<any>
|
factories |
Type : ActionExtension[]
|
Default value : []
|
items$ |
Type : Observable<Action[]>
|
Readonly refreshTrigger |
Default value : new Subject()
|
Readonly state$ |
Default value : new BehaviorSubject<Set<Action>>(new Set<Action>())
|
state |
getstate()
|
Returns the current state.
Returns :
Set<Action>
|