@univerjs/core v0.5.0-beta.1 • Docs
Class: PluginService
This service manages plugin registration.
Implements
Constructors
new PluginService()
new PluginService(_injector): PluginService
Parameters
Parameter | Type |
---|---|
_injector | Injector |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:56
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:69
registerPlugin()
registerPlugin<T>(ctor, config?): void
Register a plugin into univer.
Type Parameters
Type Parameter |
---|
T extends PluginCtor |
Parameters
Parameter | Type |
---|---|
ctor | T |
config ? | ConstructorParameters <T >[0 ] |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:80
startPluginForType()
startPluginForType(type): void
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:95