@univerjs/core v0.4.2 • Docs
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
Methods
add()
add(id, dataInstance): void
Parameters
Parameter | Type |
---|---|
id | string |
dataInstance | any |
Returns
void
Defined in
submodules/univer/packages/core/src/common/registry.ts:54 (opens in a new tab)
delete()
delete(id): void
Parameters
Parameter | Type |
---|---|
id | string |
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
Defined in
submodules/univer/packages/core/src/common/registry.ts:50 (opens in a new tab)