@univerjs/core v0.5.0-beta.1 • Docs
Class: ConfigService
Implements
Constructors
new ConfigService()
new ConfigService(): ConfigService
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
configChanged$ | readonly | Observable <{}> | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:56 |
Methods
deleteConfig()
deleteConfig(id): boolean
Parameters
Parameter | Type |
---|---|
id | string | symbol |
Returns
boolean
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:83
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:60
getConfig()
getConfig<T>(id): Nullable<T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | string | symbol |
Returns
Nullable
<T
>
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:64
setConfig()
setConfig(
id,
value,
options?): void
Parameters
Parameter | Type |
---|---|
id | string |
value | unknown |
options ? | IConfigOptions |
Returns
void
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:68
subscribeConfigValue$()
subscribeConfigValue$<T>(key): Observable<T>
Type Parameters
Type Parameter | Default type |
---|---|
T | unknown |
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Observable
<T
>
Implementation of
IConfigService
.subscribeConfigValue$
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:87