API Reference
@univerjs
@univerjs/core
interfaces
Iconfigservice

@univerjs/core v0.4.2Docs


Interface: IConfigService

Methods

deleteConfig()

deleteConfig(id): boolean

Parameters

ParameterType
idstring

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

ParameterType
idstring

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

ParameterType
idstring | symbol
valueunknown
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 ParameterDefault type
Tunknown

Parameters

ParameterType
keystring

Returns

Observable<T>

Defined in

submodules/univer/packages/core/src/services/config/config.service.ts:50 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.