@univerjs/core v0.4.2 • Docs
Class: ConfigService
Implements
Constructors
new ConfigService()
new ConfigService(): ConfigService
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
configChanged$ | readonly | Observable <{}> | submodules/univer/packages/core/src/services/config/config.service.ts:56 (opens in a new tab) |
Methods
deleteConfig()
deleteConfig(id): boolean
Parameters
Parameter | Type |
---|---|
id | string | symbol |
Returns
boolean
Implementation of
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:83 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:60 (opens in a new tab)
getConfig()
getConfig<T>(id): Nullable<T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | string | symbol |
Returns
Nullable
<T
>
Implementation of
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:64 (opens in a new tab)
setConfig()
setConfig(
id,
value,
options?): void
Parameters
Parameter | Type |
---|---|
id | string |
value | unknown |
options ? | IConfigOptions |
Returns
void
Implementation of
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:68 (opens in a new tab)
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
submodules/univer/packages/core/src/services/config/config.service.ts:87 (opens in a new tab)