Module: alfresco/renderers/Link

alfresco/renderers/Link

Extends the property link renderer to allow custom link text to be configured.
Since:
  • 1.0.54
Author:
  • Dave Draper
License:
Source:

Example

Simple example:

{
  name: "alfresco/renderers/Link",
  config: {
    labelNode: "Click Me!",
    publishTopic: "LINK_CLICKED"
  }
}

Extends

  • alfresco/renderers/PropertyLink

Members

linkLabel :string

The value to render as the displayed link.
Type:
  • string
Default Value:
  • "linkLabel not configured"
Source:

useCurrentItemAsPayload :boolean

Overrides the inherited default value because it is a more sensible default.
Type:
  • boolean
Default Value:
  • false
Source:

Methods

generateRendering(value)

Overrides the inherited function to return the localized [link label]{@link module:alfresco/renderers/Link#linkLabel}
Parameters:
Name Type Description
value object The details of the click event
Source: