Interface
The extension interface for BuilderOperations extension point.
Properties
Property | Type | Notes |
---|---|---|
(appConfig: IMAppConfig) => 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. | |
(appConfig: IMAppConfig) => 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. | |
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. |
beforePublish
Interface PropertybeforePublish: (appConfig: IMAppConfig) => 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.
Type declaration
function(appConfig: IMAppConfig): Promise<string>
Parameters
Parameter | Type | Notes |
---|---|---|
app | IMAppConfig | The app config to be published. |
Returns
Promise<string>
beforeSave
Interface PropertybeforeSave: (appConfig: IMAppConfig) => 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.
Type declaration
function(appConfig: IMAppConfig): Promise<IMAppConfig>
Parameters
Parameter | Type | Notes |
---|---|---|
app | IMAppConfig | The app config to be saved. |
Returns
Promise<IMAppConfig>
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.
widgetId
widgetId: string
The widget ID that provides the extension. No widget id means the extension is provided by Jimu.