@univerjscoreclassesContextservice

@univerjs/core v0.5.4


Class: ContextService

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:33

Extends

Implements

Constructors

new ContextService()

new ContextService(): ContextService

Returns

ContextService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
contextChanged$readonlyObservable<{}>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:35

Methods

dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:39

Returns

void

Overrides

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getContextValue()

getContextValue(key): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:44

Parameters

ParameterType
keystring

Returns

boolean

Implementation of

IContextService.getContextValue


setContextValue()

setContextValue(key, value): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:48

Parameters

ParameterType
keystring
valueboolean

Returns

void

Implementation of

IContextService.setContextValue


subscribeContextValue$()

subscribeContextValue$(key): Observable<boolean>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:53

Parameters

ParameterType
keystring

Returns

Observable<boolean>

Implementation of

IContextService.subscribeContextValue$