DependencyDefineExtension
Interface
The extension interface for DependencyDefine extension point.
Properties
Property | Type | Notes |
---|---|---|
() => string | ||
() => Resource[] | ||
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. | |
() => Promise<void> | ||
string | The widget id that provides the extension. No widget id means the extension is provided by Jimu. |
getResources
Interface PropertygetResources: () => Resource[]
Type declaration
function(): Resource[]
Return the resources.
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>
Type declaration
function(): Promise<void>
This method will be invoked after the resources are loaded. You can put post intialization code in this method.
Returns
Promise<void>
widgetId
widgetId: string
The widget id that provides the extension. No widget id means the extension is provided by Jimu.
getDependencyKey: () => string
Type declaration
function(): string
Return the dependency key.
Returns
string