core/dashboard/widgets-dashboard-event.service.ts
A service which can be used, to emit data on a dashboard level. Each Widget Dashboard gets an own instance of this service provided and you can then update all or only one.
Methods |
emit | ||||||||
emit(event: WidgetChangeEvent)
|
||||||||
Emits a new event.
Parameters :
Returns :
void
|
getLastValue | ||||||||
getLastValue(eventType: WidgetChangeEventType)
|
||||||||
Returns the last value of the event.
Parameters :
Returns :
Partial<Record<WidgetChangeEventType, WidgetChangeEvent>>
The last value used by this event, undefined if non was sent so far. |
getObservable | ||||||||
getObservable(eventType?: WidgetChangeEventType)
|
||||||||
Type parameters :
|
||||||||
Returns a subscribable event observable of specific event type if eventType is passed, or observable of all the events if no param is passed to method.
Parameters :
Returns :
Observable<>
An observable of event. |