@univerjscoreinterfacesIcontextservice

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


Interface: IContextService

Properties

PropertyModifierTypeDefined in
contextChanged$readonlyObservable<{}>packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:23

Methods

getContextValue()

getContextValue(key): boolean

Parameters

ParameterType
keystring

Returns

boolean

Defined in

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


setContextValue()

setContextValue(key, value): void

Parameters

ParameterType
keystring
valueboolean

Returns

void

Defined in

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


subscribeContextValue$()

subscribeContextValue$(key): Observable<boolean>

Parameters

ParameterType
keystring

Returns

Observable<boolean>

Defined in

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