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