@univerjs/core v0.4.2 • Docs
Interface: IConfigService
Methods
deleteConfig()
deleteConfig(id): boolean
Parameters
Parameter | Type |
---|---|
id | string |
Returns
boolean
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:49 (opens in a new tab)
getConfig()
getConfig<T>(id): Nullable<T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
id | string |
Returns
Nullable
<T
>
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:47 (opens in a new tab)
setConfig()
setConfig(
id,
value,
options?): void
Parameters
Parameter | Type |
---|---|
id | string | symbol |
value | unknown |
options ? | IConfigOptions |
Returns
void
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:48 (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
>
Defined in
submodules/univer/packages/core/src/services/config/config.service.ts:50 (opens in a new tab)