mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-1769] Added prop tables and fixed script * [ADF-1769] Corrected JSDoc formatting errors * [ADF-1769] Restored default column to prop tables
28 lines
717 B
Markdown
28 lines
717 B
Markdown
# Comments Component
|
|
|
|
Displays comments from users involved in a specified task and allows an involved user to add a comment to the task.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-comments
|
|
[taskId]="YOUR_TASK_ID"
|
|
[readOnly]="YOUR_READ_ONLY_FLAG">
|
|
</adf-comments>
|
|
```
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| taskId | `string` | | The numeric ID of the task. |
|
|
| readOnly | `boolean` | `false` | Are the comments read only? |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| error | `EventEmitter<any>` | Emitted when an error occurs while displaying/adding a comment. |
|