File

core/dashboard/widgets-dashboard-event.service.ts

Description

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.

Index

Methods

Methods

emit
emit(event: WidgetChangeEvent)

Emits a new event.

Parameters :
Name Type Optional Description
event WidgetChangeEvent No

The WidgetChangeEvent to emit.

Returns : void
getLastValue
getLastValue(eventType: WidgetChangeEventType)

Returns the last value of the event.

Parameters :
Name Type Optional Description
eventType WidgetChangeEventType No

The change event type you want the last value from.

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 :
  • T

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 :
Name Type Optional Description
eventType WidgetChangeEventType Yes

The event you want an observable for.

Returns : Observable<>

An observable of event.

results matching ""

    No results matching ""