Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Class: EventStream

The event stream of the form viewer.

Constructors

new EventStream()

new EventStream(stream): EventStream

Creates the event stream of the form viewer.

Parameters

stream: Observable<ActionEventArgs>

the set of observable events.

Returns

EventStream

Methods

filter()

filter(predicate): EventStream

Returns the event stream filtered by the specified predicate function.

Parameters

predicate

the predicate function.

Returns

EventStream

the event stream filtered by the specified predicate function.


keys()

keys(...keys): EventStream

Returns the event stream filtered by the specified sender keys.

Parameters

• ...keys: string[]

the sender key array.

Returns

EventStream

the event stream filtered by the specified sender keys.


listen()

Adds the specified observer to the stream of observed events.

Param

the observer.

listen(next)

listen(next): () => void

Adds the subscriber to the stream of observed events.

Parameters

next

the subscriber function.

Returns

Function

the unsubscribe function.

Returns

void

Param

the observer.

listen(observer)

listen(observer): () => void

Adds the specified observer to the stream of observed events.

Parameters

observer: Partial<Observer<ActionEventArgs>>

the observer.

Returns

Function

the unsubscribe function.

Returns

void

Param

the observer.


types()

types(...types): EventStream

Returns the event stream filtered by the specified event types.

Parameters

• ...types: string[]

the array of event types.

Returns

EventStream

the event stream filtered by the specified event types.