API Reference
@univerjs
@univerjs/core
classes
Registryasmap

@univerjs/core v0.4.2Docs


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

submodules/univer/packages/core/src/common/registry.ts:54 (opens in a new tab)


delete()

delete(id): void

Parameters

ParameterType
idstring

Returns

void

Defined in

submodules/univer/packages/core/src/common/registry.ts:61 (opens in a new tab)


getData()

getData(): Map<string, any>

Returns

Map<string, any>

Defined in

submodules/univer/packages/core/src/common/registry.ts:65 (opens in a new tab)


create()

static create(): RegistryAsMap

Returns

RegistryAsMap

Defined in

submodules/univer/packages/core/src/common/registry.ts:50 (opens in a new tab)


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