@univerjscoreclassesPluginservice

@univerjs/core v0.5.4


Class: PluginService

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:51

This service manages plugin registration.

Implements

Constructors

new PluginService()

new PluginService(_injector): PluginService

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:56

Parameters

ParameterType
_injectorInjector

Returns

PluginService

Methods

dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:69

Returns

void

Implementation of

IDisposable.dispose


registerPlugin()

registerPlugin<T>(ctor, config?): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:80

Register a plugin into univer.

Type Parameters

Type Parameter
T extends PluginCtor

Parameters

ParameterType
ctorT
config?ConstructorParameters<T>[0]

Returns

void


startPluginForType()

startPluginForType(type): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/plugin/plugin.service.ts:95

Parameters

ParameterType
typeUniverInstanceType

Returns

void