@univerjscoreinterfacesIconfigservice

@univerjs/core v0.5.0-beta.1Docs


Interface: IConfigService

Methods

deleteConfig()

deleteConfig(id): boolean

Parameters

ParameterType
idstring

Returns

boolean

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:49


getConfig()

getConfig<T>(id): Nullable<T>

Type Parameters

Type Parameter
T

Parameters

ParameterType
idstring

Returns

Nullable<T>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:47


setConfig()

setConfig(
   id, 
   value, 
   options?): void

Parameters

ParameterType
idstring | symbol
valueunknown
options?IConfigOptions

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:48


subscribeConfigValue$()

subscribeConfigValue$<T>(key): Observable<T>

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
keystring

Returns

Observable<T>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/config/config.service.ts:50