This mixin module extends CoreWidgetProcessing to provide
some additional identification processing for widgets in the alfresco/lists/layouts package. This is necessary to ensure
that an "id" attribute can be given to an widget in the alfresco/renderers package and for that attribute to be
updated to include the index of the current item. This is required because the renderers and list layout controls
are typically used when iterating over multiple items and Aikau ensures that each widget has a unique "id". Therefore
in order to be able to use unique identifiers within a page model it is necessary to update the "id" on each iteration
to prevent duplications.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Extends
- module:aikau/core/ChildProcessing
Methods
-
processWidgetConfig(widget) → {object}
-
Extends the inherited function to update the widget id (if configured) so that it is appended with "_ITEM_
" (where is the index of the current item being iterated over). Parameters:
Name Type Description widget
object The widget configuration build configuration for Returns:
The arguments that can be used when instantiating the widget configuration processed- Type
- object