Module: alfresco/renderers/XhrContextActions

alfresco/renderers/XhrContextActions

This module extends the standard actions renderer to provide the capability to asynchronously retrieve the actions for a specific Alfresco document or folder when only the NodeRef is known.

Author:
  • Dave Draper
License:
Source:

Members

_actionsLoaded :boolean

A boolean flag indicating whether or not the actions have been loaded yet.
Type:
  • boolean
Since:
  • 1.0.62
Default Value:
  • false
Source:

widgetsForLoading :array

The JSON model for controlling the widgets that are displayed whilst waiting for the XHR request to complete.
Type:
  • array
Since:
  • 1.0.62
Source:

Methods

addActions()

Extends the inherited function to create place holding [widgets]{@link module:alfresco/renderers/XhrContextActions#widgetsForLoading} to display until the XHR request to retrieve the full Node details returns. This function is subsequently called when the user opens the pop-up menu to render all the actions.
Since:
  • 1.0.62
Source:

clearLoadingItem()

Removes the "Loading..." place holder menu item. Called from onXhrData
Since:
  • 1.0.62
Source:

onXhrData(callback, payload)

Overrides the inherited function. It calls addXhrItems to render the actions.
Parameters:
Name Type Description
callback function The function to call to display the drop-down (not required for context actions)
payload object
Since:
  • 1.0.62
Source: