File

core/action/action.service.ts

Description

A service which defines global actions.

Index

Properties
Methods
Accessors

Constructor

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

Methods

add
add(item: Action)

Adds a new item to the actions in the header and emits a state change.

Parameters :
Name Type Optional Description
item Action No

The item to add.

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 :
Name Type Optional Description
item Action No

The item to remove.

Returns : void

Properties

items$
items$: Observable<Action[]>
Type : Observable<Action[]>
Readonly refreshTrigger
refreshTrigger:
Default value : new Subject()
Readonly state$
state$:
Default value : new BehaviorSubject<Set<Action>>(new Set<Action>())

Accessors

state
getstate()

Returns the current state.

Returns : Set<Action>

result-matching ""

    No results matching ""