@univerjs/core v0.4.2 • 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 | - | submodules/univer/packages/core/src/observer/observable.ts:35 (opens in a new tab) |
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. | submodules/univer/packages/core/src/observer/observable.ts:33 (opens in a new tab) |
skipNextObservers | boolean | false | An WorkBookObserver can set this property to true to prevent subsequent observers of being notified | submodules/univer/packages/core/src/observer/observable.ts:27 (opens in a new tab) |
Methods
stopPropagation()
stopPropagation(): void
Returns
void
Defined in
submodules/univer/packages/core/src/observer/observable.ts:37 (opens in a new tab)