@univerjs/core v0.5.0-beta.1 • Docs
Class: ContextService
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:93 |
contextChanged$ | readonly | Observable <{}> | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:35 |
Methods
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:39
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100
getContextValue()
getContextValue(key): boolean
Parameters
Parameter | Type |
---|---|
key | string |
Returns
boolean
Implementation of
IContextService
.getContextValue
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:44
setContextValue()
setContextValue(key, value): void
Parameters
Parameter | Type |
---|---|
key | string |
value | boolean |
Returns
void
Implementation of
IContextService
.setContextValue
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:48
subscribeContextValue$()
subscribeContextValue$(key): Observable<boolean>
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Observable
<boolean
>
Implementation of
IContextService
.subscribeContextValue$
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/context/context.service.ts:53