Module: alfresco/menus/AlfSelectedItemsMenuItem

alfresco/menus/AlfSelectedItemsMenuItem

This menu item is intended to be used a child of a [AlfSelectedItemsMenuBarPopup] module:alfresco/documentlibrary/AlfSelectedItemsMenuBarPopup widget as it extends the standard AlfMenuItem to create subscriptions to the selectedDocumentsChangeTopic that is published whenever items are selected.
Author:
  • Dave Draper
License:
Source:

Members

clearSelectedItemsOnClick :boolean

When this is true a payload will be published indicating that the currently selected items should be cleared. The default value is false.
Type:
  • boolean
Default Value:
  • false
Source:

Methods

onClick(evt)

Extends the inherited function to publish a request to clear selected items if [clearSelectedItemsOnClick] module:alfresco/menus/AlfSelectedItemsMenuItem#clearSelectedItemsOnClick is set to true.
Parameters:
Name Type Description
evt object The click event
Source:

onItemsSelected(payload)

When items are selected this function will be called to update the publication payload with the details of the items that have been selected.
Parameters:
Name Type Description
payload object A publication payload containing the details of the selected items.
Source:

postCreate()

Extends the inherited function to set up the subscription to receive notification of selected items.
Source: