Skip to main content
Important The collaborate:comment-list is only available in Appkit 4.1+.

Description

Comment list component for displaying a list of comments. If used within a result you will need to add the following workflow processor to your platform in order to get the comments that have been made on this result.
workflow:
    twigkit.social.processor.AddCommentFactsProcessor

Usage

as element:
<collaborate:comment-list
       target="{string}"
       platform="{object}"
       [collection="{string}"]
       [topic="{number}"]
       [format="{string}"]
       [show="{number}"]
       [show-more="{number}"]
       [empty-text="{string}"]
       [avatars="{string}"]>
</collaborate:comment-list>

Directive info

  • This directive creates new scope.

Parameters

ParamTypeDetails
targetstringThe ID of the document that should be commented on.
platformobjectThe platform Object
collection (optional)stringIf set, only display comments restricted to the given collection.
topic (optional)numberIf set, only display comments restricted to the given type.
format (optional)stringHow to format the date (formats supported: https://docs.angularjs.org/api/ng/filter/date and ‘relative’which outputs the relative date (e.g. 2 hours ago)). Default: relative
show (optional)numberHow many comments should be displayed initially (default:2).
show-more (optional)numberHow many more comments should be added to the list each time the user clicks ‘Show more’ (default: 4).
empty-text (optional)stringMessage to display when there are no comments to show (default: "").
avatars (optional)stringWhether to display avatars next to each comment (default: “true”).