@univerjscoreclassesRegistryasmap

@univerjs/core v0.5.4


Class: RegistryAsMap

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:47

Add extension modules statically when the plugin is initialized, so that the plugin can register these extension modules uniformly

Constructors

new RegistryAsMap()

new RegistryAsMap(): RegistryAsMap

Returns

RegistryAsMap

Methods

add()

add(id, dataInstance): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:54

Parameters

ParameterType
idstring
dataInstanceany

Returns

void


delete()

delete(id): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:61

Parameters

ParameterType
idstring

Returns

void


getData()

getData(): Map<string, any>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:65

Returns

Map<string, any>


create()

static create(): RegistryAsMap

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:50

Returns

RegistryAsMap