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