AppConfigOperationsExtension

Interface

The methods in this class must return the new appConfig.

Inheritance: AppConfigOperationsExtensionBaseExtension

Properties

Hide inherited properties
PropertyTypeNotes
(sourceWidgetIdstring, sourceAppConfigIMAppConfig, destWidgetIdstring, destAppConfigIMAppConfig, widgetMap?{ [key: string]: string }) => IMAppConfig

Process the widget's internal config after it is copied if necessary. Only the original widget's extension should get invoked with the new copiedWidgetId.

(appConfigIMAppConfig, dataSourceIdstring) => IMAppConfig

If a widget saves the data source id in its internal config, it should override this method to do the clean ups. Only the widgets that save the data source id in it's useDataSources will get invoked.

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.

(appConfigIMAppConfig, mapWidgetIdstring) => IMAppConfig

If a widget saves some map related data its internal config, it should override this method to do the clean ups. Only the widgets that save the map widget id in it's useMapWidgets will get invoked.

name
inherited
string

The extension name.

(appConfigIMAppConfig, utilityIdstring) => IMAppConfig

If a widget saves the utility id in its internal config, it should override this method to do the clean ups. Only the widgets that save the utility id in it's useUtilities will get invoked.

widgetId
inherited
string

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

(appConfigIMAppConfig) => IMAppConfig

Do some cleanup operations before current widget is removed.

afterWidgetCopied

optional
Interface Property
afterWidgetCopied: (sourceWidgetIdstring, sourceAppConfigIMAppConfig, destWidgetIdstring, destAppConfigIMAppConfig, widgetMap?{ [key: string]: string }) => IMAppConfig

Process the widget's internal config after it is copied if necessary. Only the original widget's extension should get invoked with the new copiedWidgetId.

Type declaration
    function(sourceWidgetIdstring, sourceAppConfigIMAppConfig, destWidgetIdstring, destAppConfigIMAppConfig, widgetMap?{ [key: string]: string }): IMAppConfig
    Parameters
    ParameterTypeNotes
    sourceWidgetId
    string

    Id of the widget that is copied.

    sourceAppConfig
    IMAppConfig

    The app config the sourceWidgetId comes from.

    destWidgetId
    string

    Id of the widget that is created in the destAppConfig.

    destAppConfig
    IMAppConfig

    The app config the destWidgetId is created in.

    widgetMap
    { [key: string]: string }

    The map of widget ids after copying. Only provided when the whole page is duplicated. The key is the widget id in the original page, and the value is the widget id in the copied page.

    Returns 
    IMAppConfig

dataSourceWillRemove

optional
Interface Property
dataSourceWillRemove: (appConfigIMAppConfig, dataSourceIdstring) => IMAppConfig

If a widget saves the data source id in its internal config, it should override this method to do the clean ups. Only the widgets that save the data source id in it's useDataSources will get invoked.

Type declaration
    function(appConfigIMAppConfig, dataSourceIdstring): IMAppConfig
    Parameters
    ParameterTypeNotes
    appConfig
    IMAppConfig

    The app config.

    dataSourceId
    string

    The data source id that is going to be removed.

    Returns 
    IMAppConfig

id

inherited
Interface Property
id: string

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

Inherited from BaseExtension.id

index

optionalinherited
Interface Property
index: number

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

Inherited from BaseExtension.index

mapWidgetWillRemove

optional
Interface Property
mapWidgetWillRemove: (appConfigIMAppConfig, mapWidgetIdstring) => IMAppConfig

If a widget saves some map related data its internal config, it should override this method to do the clean ups. Only the widgets that save the map widget id in it's useMapWidgets will get invoked.

Type declaration
    function(appConfigIMAppConfig, mapWidgetIdstring): IMAppConfig
    Parameters
    ParameterTypeNotes
    appConfig
    IMAppConfig

    The app config.

    mapWidgetId
    string

    The map widget id that is going to be removed.

    Returns 
    IMAppConfig

name

optionalinherited
Interface Property
name: string

The extension name.

Inherited from BaseExtension.name

utilityWillRemove

optional
Interface Property
utilityWillRemove: (appConfigIMAppConfig, utilityIdstring) => IMAppConfig

If a widget saves the utility id in its internal config, it should override this method to do the clean ups. Only the widgets that save the utility id in it's useUtilities will get invoked.

Type declaration
    function(appConfigIMAppConfig, utilityIdstring): IMAppConfig
    Parameters
    ParameterTypeNotes
    appConfig
    IMAppConfig

    The app config.

    utilityId
    string

    The utility id that is going to be removed.

    Returns 
    IMAppConfig

widgetId

optionalinherited
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

widgetWillRemove

optional
Interface Property
widgetWillRemove: (appConfigIMAppConfig) => IMAppConfig

Do some cleanup operations before current widget is removed.

Type declaration
    function(appConfigIMAppConfig): IMAppConfig
    Parameters
    ParameterType
    appConfig
    IMAppConfig
    Returns 
    IMAppConfig

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