Module: alfresco/lists/views/layouts/_LayoutMixin

alfresco/lists/views/layouts/_LayoutMixin

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.
Author:
  • Dave Draper
License:
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
Source:
Returns:
The arguments that can be used when instantiating the widget configuration processed
Type
object