Skip to content

Interface

The extension interface for BuilderOperations extension point.

Inheritance: BuilderOperationsExtensionBaseExtension

Properties

Hide inherited properties
PropertyTypeNotes
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.

widgetId
inherited
string

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

id

inheritedinherited
Interface Property
id: string

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

Inherited from BaseExtension.id

index

optionalinheritedinherited
Interface Property
index: number

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

Inherited from BaseExtension.index

label

optionalinheritedinherited
Interface Property
label: string

The extension label.

Inherited from BaseExtension.label

name

optionalinheritedinherited
Interface Property
name: string

The extension name.

Inherited from BaseExtension.name

widgetId

optionalinheritedinherited
Interface Property
widgetId: string

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

Inherited from BaseExtension.widgetId

Methods

MethodReturnsNotes
beforePublish(appConfig)Promise<string>

Will be invoked before publish app. All extensions must return the updated app config, the updated app config will be used by the next extension.

beforeSave(appConfig)Promise<IMAppConfig>

Will be invoked before save app. A widget can use this method to check or update the config before saving the app. All extensions must return the updated app config, the updated app config will be used by the next extension.

getTranslationKey(appConfig)Promise<TranslationKey[]>

Will be invoked when opening the multiple language setting panel. All extensions must return the keys that need to be translated.

beforePublish

optional
Interface Method
beforePublish(appConfigIMAppConfig): Promise<string>

Will be invoked before publish app. All extensions must return the updated app config, the updated app config will be used by the next extension.

Parameters
ParameterTypeNotes
appConfigIMAppConfig

The app config to be published.

Returns 
Promise<string>

beforeSave

optional
Interface Method
beforeSave(appConfigIMAppConfig): Promise<IMAppConfig>

Will be invoked before save app. A widget can use this method to check or update the config before saving the app. All extensions must return the updated app config, the updated app config will be used by the next extension.

Parameters
ParameterTypeNotes
appConfigIMAppConfig

The app config to be saved.

Returns 
Promise<IMAppConfig>

getTranslationKey

optional
Interface Method
getTranslationKey(appConfigIMAppConfig): Promise<TranslationKey[]>

Will be invoked when opening the multiple language setting panel. All extensions must return the keys that need to be translated.

Parameters
ParameterType
appConfigIMAppConfig
Returns 
Promise<TranslationKey[]>

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