Module: alfresco/renderers/_ItemLinkMixin

alfresco/renderers/_ItemLinkMixin

Author:
  • Dave Draper
License:
Source:

Members

customDetailsURL :string

The standard details URL can be optionally overridden to go do a different page
Type:
  • string
Default Value:
  • null
Source:

linkClickTopic :string

This is the topic that will be published when the item is clicked. The default is aimed at being processed by the NavigationService but it can be overridden by the widget mixing in this class to set a custom topic to use.
Type:
  • string
Default Value:
  • "ALF_NAVIGATE_TO_PAGE"
Source:

Methods

Parameters:
Name Type Description
payload object The payload to add the link data to
item object An optional item to provide. If this is not provided then "currentItem" is used instead
Source:
Returns:
The topic to publish on
Type
string

onItemLinkClick(evt)

This handles the onClick events of the linked item. The supplied payload will be published to the navigation service to redirect the page or update the current URL hash.
Parameters:
Name Type Description
evt event The click event
Source:

updateCurrentItem()

Overrides the inherited function to reload the metadata for the item.
Since:
  • 1.0.83
Source:
Fires:
  • module:alfresco/core/topics#event:GET_DOCUMENT

updateFolderLinkPublication(publishPayload, item)

Updates the publication payload and topic for a folder.
Parameters:
Name Type Description
publishPayload object The publication payload object to update.
item object An optional item to provide. If this is not provided then "currentItem" is used instead
Source:

<inner> updateDocumentLinkPublication(publishPayload, item)

Retrieves the navigation payload to use for accessing the details page for an item. The defail payload can be overridden by setting a custom details URL or by overriding this function in classes that mixin this module.
Parameters:
Name Type Description
publishPayload object The publication payload object to update.
item object An optional item to provide. If this is not provided then "currentItem" is used instead
Source: