@univerjs/core v0.4.2 • Docs
Function: DependentOn()
function DependentOn(...plugins): (target) => void
Use this decorator to declare dependencies among plugins. If a dependent plugin is not registered yet, Univer will automatically register it with no configuration.
For example:
@DependentOn(UniverDrawingPlugin, UniverDrawingUIPlugin, UniverSheetsDrawingPlugin)
export class UniverSheetsDrawingUIPlugin extends Plugin {
}
Parameters
Parameter | Type |
---|---|
...plugins | PluginCtor <Plugin >[] |
Returns
Function
Parameters
Parameter | Type |
---|---|
target | PluginCtor <Plugin > |
Returns
void
Defined in
submodules/univer/packages/core/src/services/plugin/plugin.service.ts:42 (opens in a new tab)