@univerjscoreclassesContextservice

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


Class: ContextService

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:93
contextChanged$readonlyObservable<{}>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:35

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100


getContextValue()

getContextValue(key): boolean

Parameters

ParameterType
keystring

Returns

boolean

Implementation of

IContextService.getContextValue

Defined in

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


setContextValue()

setContextValue(key, value): void

Parameters

ParameterType
keystring
valueboolean

Returns

void

Implementation of

IContextService.setContextValue

Defined in

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


subscribeContextValue$()

subscribeContextValue$(key): Observable<boolean>

Parameters

ParameterType
keystring

Returns

Observable<boolean>

Implementation of

IContextService.subscribeContextValue$

Defined in

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