@univerjscoreinterfacesIcontextservice

@univerjs/core v0.5.4


Interface: IContextService

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

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

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

Parameters

ParameterType
keystring

Returns

boolean


setContextValue()

setContextValue(key, value): void

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

Parameters

ParameterType
keystring
valueboolean

Returns

void


subscribeContextValue$()

subscribeContextValue$(key): Observable<boolean>

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

Parameters

ParameterType
keystring

Returns

Observable<boolean>