@univerjscoreclassesEventstate

@univerjs/core v0.5.0-beta.1Docs


Class: EventState

A class serves as a medium between the observable and its observers

Constructors

new EventState()

new EventState(): EventState

Returns

EventState

Properties

PropertyTypeDefault valueDescriptionDefined in
isStopPropagationbooleanfalse-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/observer/observable.ts:35
lastReturnValue?unknownundefinedThis 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
skipNextObserversbooleanfalseAn WorkBookObserver can set this property to true to prevent subsequent observers of being notifiedpackages/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