@univerjs/core v0.5.0-beta.1 • Docs
Class: EventState
A class serves as a medium between the observable and its observers
Constructors
new EventState()
new EventState(): EventState
Returns
Properties
Property | Type | Default value | Description | Defined in |
---|---|---|---|---|
isStopPropagation | boolean | false | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/observer/observable.ts:35 |
lastReturnValue? | unknown | undefined | This will be populated with the return value of the last function that was executed. If it is the first function in the callback chain it will be the event data. | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/observer/observable.ts:33 |
skipNextObservers | boolean | false | An WorkBookObserver can set this property to true to prevent subsequent observers of being notified | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/observer/observable.ts:27 |
Methods
stopPropagation()
stopPropagation(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/observer/observable.ts:37