Class: ContextService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:33
Extends
Implements
Constructors
new ContextService()
new ContextService(): ContextService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
contextChanged$ | readonly | Observable <{}> | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:35 |
Methods
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:39
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getContextValue()
getContextValue(key): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:44
Parameters
Parameter | Type |
---|---|
key | string |
Returns
boolean
Implementation of
IContextService
.getContextValue
setContextValue()
setContextValue(key, value): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:48
Parameters
Parameter | Type |
---|---|
key | string |
value | boolean |
Returns
void
Implementation of
IContextService
.setContextValue
subscribeContextValue$()
subscribeContextValue$(key): Observable<boolean>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:53
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Observable
<boolean
>