mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-07 18:25:09 +00:00
* [ADF-5580] emit commentAdded event from adf-comments component * [ADF-5580] Emit commentAdded event from adf-comments and expose it in adf-node-comments * [ADF-5580] Emit commentAdded event from NodeCommentsComponent, add unit test, and update docs * [ADF-5580] Add unit test for commentAdded output in NodeCommentsComponent, update docs and create testing utils * [ADF-5580] Mark debugElement as readOnly * [ADF-5580] Add mock services and fix unit test setup * [ADF-5580] Reuse shared comment mocks across multiple test files * [ADF-5580] Align comments component documentation * [ADF-5580] Remove redundant setup and use ContentTestingModule in comment components tests
1.5 KiB
1.5 KiB
Title, Added, Status
Title | Added | Status |
---|---|---|
Node Comments Component | v5.1.0 | Active |
Node Comments Component
Displays comments from users involved in a specified content and allows an involved user to add a comment to a content.
Basic Usage Task
<adf-node-comments
[nodeId]="YOUR_NODE_ID"
[readOnly]="YOUR_READ_ONLY_FLAG"
(commentAdded)="onCommentAdded($event)">
</adf-node-comments>
Class members
Properties
Name | Type | Default value | Description |
---|---|---|---|
nodeId | string |
nodeId of the document that has comments | |
readOnly | boolean |
make the comments component readOnly |
Events
Name | Type | Description |
---|---|---|
commentAdded | EventEmitter |
Emitted when a new comment is successfully added. |