Module: alfresco/renderers/Like

alfresco/renderers/Like

Members

cssRequirements :object[]

An array of the CSS files to use with this widget.
Type:
  • object[]
Default Value:
  • [{cssFile:"./css/Like.css"}]
Source:

i18nRequirements :object[]

An array of the i18n files to use with this widget.
Type:
  • object[]
Default Value:
  • [{i18nFile: "./i18n/Like.properties"}]
Source:

likeCountProperty :string

The dot-notation property to use for the count of comments. Can be overridden.
Type:
  • string
Default Value:
  • "likes.totalLikes"
Source:

offLabel :string

The label to show when the toggle is on
Type:
  • string
Default Value:
  • "like.add.label"
Source:

offTooltip :string

The tooltip to show when the toggle is on. Override this to add a specific image for the "on" state.
Type:
  • string
Default Value:
  • "like.add.tooltip"
Source:

onLabel :string

The label to show when the toggle is on
Type:
  • string
Source:

onTooltip :string

The tooltip to show when the toggle is on
Type:
  • string
Default Value:
  • "like.remove.tooltip"
Source:

propertyToRender :string

Sets a default dot-notation property in the current item to use to render the initial state.
Type:
  • string
Default Value:
  • "likes.isLiked"
Source:

templateString :string

The HTML template to use for the widget.
Type:
  • string
Source:

toggleClass :string

The CSS class to apply for the on display
Type:
  • string
Default Value:
  • "like"
Source:

Methods

onToggleOffSuccess()

Called whenever the "toggleOffSuccessTopic" attribute is published on
Source:

onToggleOnSuccess()

Called whenever the "toggleOnSuccessTopic" attribute is published on
Source:

postMixInProperties()

Extends to add the count of all likes.
Source: