@univerjs/core v0.5.0-beta.1 • 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
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:54
delete()
delete(id): void
Parameters
Parameter | Type |
---|---|
id | string |
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
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/registry.ts:50