DependencyDefineExtension
Interface
The extension interface for DependencyDefine extension point.
Properties
Property | Type | Notes |
---|---|---|
string | The unique id. For widget's provided extension, the id pattern is: widgetId + extensionName | |
number | If an extension point supports multiple extensions, the index is used to determine the extension order. | |
string | The extension name. | |
string | The widget id that provides the extension. No widget id means the extension is provided by Jimu. |
index
index: number
If an extension point supports multiple extensions, the index is used to determine the extension order.
widgetId
widgetId: string
The widget id that provides the extension. No widget id means the extension is provided by Jimu.
Methods
Method | Returns | Notes |
---|---|---|
string | Return the dependency key. | |
Resource[] | Return the resources. | |
postInit() | Promise<void> | This method will be invoked after the resources are loaded. You can put post intialization code in this method. |
id: string
The unique id. For widget's provided extension, the id pattern is: widgetId + extensionName