API Reference
@univerjs
@univerjs/core
classes
Pluginservice

@univerjs/core v0.4.2Docs


Class: PluginService

This service manages plugin registration.

Implements

Constructors

new PluginService()

new PluginService(_injector): PluginService

Parameters

ParameterType
_injectorInjector

Returns

PluginService

Defined in

submodules/univer/packages/core/src/services/plugin/plugin.service.ts:56 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

submodules/univer/packages/core/src/services/plugin/plugin.service.ts:69 (opens in a new tab)


registerPlugin()

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

Register a plugin into univer.

Type Parameters

Type Parameter
T extends PluginCtor

Parameters

ParameterType
ctorT
config?ConstructorParameters<T>[0]

Returns

void

Defined in

submodules/univer/packages/core/src/services/plugin/plugin.service.ts:80 (opens in a new tab)


startPluginForType()

startPluginForType(type): void

Parameters

ParameterType
typeUniverInstanceType

Returns

void

Defined in

submodules/univer/packages/core/src/services/plugin/plugin.service.ts:95 (opens in a new tab)


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