@univerjscoreclassesRegistryasmap

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


Class: RegistryAsMap

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

Parameters

ParameterType
idstring
dataInstanceany

Returns

void

Defined in

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


delete()

delete(id): void

Parameters

ParameterType
idstring

Returns

void

Defined in

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


getData()

getData(): Map<string, any>

Returns

Map<string, any>

Defined in

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


create()

static create(): RegistryAsMap

Returns

RegistryAsMap

Defined in

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