Module: alfresco/renderers/CommentsList

alfresco/renderers/CommentsList

This widget displays the comments for a particular node. The comments are displayed in a sortable paginated list with [paging controls]{@link module:alfresco/lists/Paginator} for managing the comments displayed. The individual comments are displayed using the EditableComment which allows individual comments to be updated if the current user has the appropriate permissions to work with that comment.

Please note that for this widget relies on the CommentService and CrudService being present on the page in order to retrieve, create, update and delete comments. However these services can be substituted for custom versions that subscribe and publish on the same topics if required.

Author:
  • Dave Draper
License:
Source:

Members

addCommentsFullScreen :boolean

Whether to use a full-screen dialog when adding comments.
Type:
  • boolean
Since:
  • 1.0.43
Default Value:
  • false
Source:

addCommentsPadding :number

When addCommentsFullScreen is set to true, then this will permit overriding the padding that this full-screen mode specifies by default.
Type:
  • number
Since:
  • 1.0.43
Default Value:
  • 0
Source:

cssRequirements :object[]

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

i18nRequirements :object[]

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

widgets

The widgets that comprise this CommentsList.
Source:

Methods

postCreate()

Widget has been started, but not necessarily any sub-widgets.
Source: