DependencyDefineExtension

Interface

The extension interface for DependencyDefine extension point.

Inheritance: DependencyDefineExtensionBaseExtension

Properties

PropertyTypeNotes
string

The unique id. For widget's provided extension, the id pattern is: widgetId + extensionName

index
 optional 
number

If an extension point supports multiple extensions, the index is used to determine the extension order.

name
 optional 
string

The extension name.

widgetId
 optional 
string

The widget id that provides the extension. No widget id means the extension is provided by Jimu.

id

id: string

The unique id. For widget's provided extension, the id pattern is: widgetId + extensionName

index optional

index: number

If an extension point supports multiple extensions, the index is used to determine the extension order.

name optional

name: string

The extension name.

widgetId optional

widgetId: string

The widget id that provides the extension. No widget id means the extension is provided by Jimu.

Methods

MethodReturnsNotes
string

Return the dependency key.

Resource[]

Return the resources.

postInit()
 optional 
Promise<void>

This method will be invoked after the resources are loaded. You can put post intialization code in this method.

getDependencyKey

getDependencyKey(): string

Return the dependency key.

Returns 
string

getResources

getResources(): Resource[]

Return the resources.

Returns 
Resource[]

postInit optional

postInit(): Promise<void>

This method will be invoked after the resources are loaded. You can put post intialization code in this method.

Returns 
Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.