Module: alfresco/renderers/_ActionsMixin

alfresco/renderers/_ActionsMixin

This module can be mixed into other modules to generate menu items
representing Alfresco document or folder actions generated for a specific node or an entirely custom action
list. It exists as mixin to support multipe ways of rendering actions (e.g. either in a menu bar or in a
context menu)

Mixes In

Members

allowedActions :array

Array containing a list of allowed actions
This is used to filter out actions that the actions API returns, but haven't yet been implemented.
TODO: Remove this once all actions have been implemented by the actions service.
Currently - all actions of type link and pagelink should work.

cssRequirements :object[]

Type:

customActions :object[]

An array of action configuration objects to render in the action menu. This array will take precedence
over any actions defined on the "currentItem" unless the
mergeActions) attribute is
configured to be true (in which case both the actions defined on the "currentItem" will be rendered along
with the actions defined in this array).

Type:

widgetsForActions :object[]

This is array of actions to render if no customActions are defined or no actions are found in the
currentItem. The list of actions does not currently reflect all the actions that will eventually be available,
additional actions will be added in future releases as support is provided for them.