API Reference
@univerjs
@univerjs/core
interfaces
Icontextservice

@univerjs/core v0.4.2Docs


Interface: IContextService

Properties

PropertyModifierTypeDefined in
contextChanged$readonlyObservable<{}>submodules/univer/packages/core/src/services/context/context.service.ts:23 (opens in a new tab)

Methods

getContextValue()

getContextValue(key): boolean

Parameters

ParameterType
keystring

Returns

boolean

Defined in

submodules/univer/packages/core/src/services/context/context.service.ts:25 (opens in a new tab)


setContextValue()

setContextValue(key, value): void

Parameters

ParameterType
keystring
valueboolean

Returns

void

Defined in

submodules/univer/packages/core/src/services/context/context.service.ts:26 (opens in a new tab)


subscribeContextValue$()

subscribeContextValue$(key): Observable<boolean>

Parameters

ParameterType
keystring

Returns

Observable<boolean>

Defined in

submodules/univer/packages/core/src/services/context/context.service.ts:28 (opens in a new tab)


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