API Reference
@univerjs
@univerjs/core
classes
Eventstate

@univerjs/core v0.1.17Docs


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-submodules/univer/packages/core/src/observer/observable.ts:35 (opens in a new tab)
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.submodules/univer/packages/core/src/observer/observable.ts:33 (opens in a new tab)
skipNextObserversbooleanfalseAn WorkBookObserver can set this property to true to prevent subsequent observers of being notifiedsubmodules/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)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.