@univerjscoreclassesConfigservice

@univerjs/core v0.5.4


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

ConfigService

Properties

PropertyModifierTypeDefined in
configChanged$readonlyObservable<{}>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

ParameterType
idstring | symbol

Returns

boolean

Implementation of

IConfigService.deleteConfig


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

IDisposable.dispose


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

ParameterType
idstring | symbol

Returns

Nullable<T>

Implementation of

IConfigService.getConfig


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

ParameterType
idstring
valueunknown
options?IConfigOptions

Returns

void

Implementation of

IConfigService.setConfig


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 ParameterDefault type
Tunknown

Parameters

ParameterType
keystring

Returns

Observable<T>

Implementation of

IConfigService.subscribeConfigValue$