Class: EventEmitter
api.EventEmitter
#
HierarchyEventEmitter
↳
DataProviderBase
↳
IDataProvider
↳
Component
↳
Tag
↳
Viewer
#
Implements#
Constructors#
constructor• new EventEmitter()
#
Defined in#
Methods#
offâ–¸ off<T
>(type
, handler
): void
Unsubscribe from an event by its name.
#
Type parametersName |
---|
T |
#
ParametersName | Type | Description |
---|---|---|
type | string | The name of the event to unsubscribe from. |
handler | (event : T ) => void | The handler to remove. |
#
Returnsvoid
#
Implementation of#
Defined in#
onâ–¸ on<T
>(type
, handler
): void
Subscribe to an event by its name.
#
Type parametersName |
---|
T |
#
ParametersName | Type | Description |
---|---|---|
type | string | The name of the event to subscribe to. |
handler | (event : T ) => void | The handler called when the event occurs. |
#
Returnsvoid