@univerjscoreclassesConfigservice

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


Class: ConfigService

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:56

Methods

deleteConfig()

deleteConfig(id): boolean

Parameters

ParameterType
idstring | symbol

Returns

boolean

Implementation of

IConfigService.deleteConfig

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

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


getConfig()

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

Type Parameters

Type Parameter
T

Parameters

ParameterType
idstring | symbol

Returns

Nullable<T>

Implementation of

IConfigService.getConfig

Defined in

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


setConfig()

setConfig(
   id, 
   value, 
   options?): void

Parameters

ParameterType
idstring
valueunknown
options?IConfigOptions

Returns

void

Implementation of

IConfigService.setConfig

Defined in

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


subscribeConfigValue$()

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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
keystring

Returns

Observable<T>

Implementation of

IConfigService.subscribeConfigValue$

Defined in

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