@univerjs/core v0.4.2 • Docs
Interface: IContextService
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
contextChanged$ | readonly | Observable <{}> | submodules/univer/packages/core/src/services/context/context.service.ts:23 (opens in a new tab) |
Methods
getContextValue()
getContextValue(key): boolean
Parameters
Parameter | Type |
---|---|
key | string |
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
Parameter | Type |
---|---|
key | string |
value | boolean |
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
Parameter | Type |
---|---|
key | string |
Returns
Observable
<boolean
>
Defined in
submodules/univer/packages/core/src/services/context/context.service.ts:28 (opens in a new tab)