Class: ConfigService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:53
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:55 |
Methods
deleteConfig()
deleteConfig(id): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:82
Parameters
Parameter | Type |
---|---|
id | string | symbol |
Returns
boolean
Implementation of
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:59
Returns
void
Implementation of
getConfig()
getConfig<T>(id): Nullable<T>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:63
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | string | symbol |
Returns
Nullable
<T
>
Implementation of
setConfig()
setConfig(
id,
value,
options?): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:67
Parameters
Parameter | Type |
---|---|
id | string |
value | unknown |
options ? | IConfigOptions |
Returns
void
Implementation of
subscribeConfigValue$()
subscribeConfigValue$<T>(key): Observable<T>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:86
Type Parameters
Type Parameter | Default type |
---|---|
T | unknown |
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Observable
<T
>