mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3745] Updates for doc review (#3970)
* [ADF-3745] Updated tutorial text * [ADF-3745] Updates for doc review
This commit is contained in:
committed by
Eugenio Romano
parent
7b3f400c48
commit
54cbd210a1
@@ -1,6 +1,7 @@
|
||||
---
|
||||
Added: v2.0.0
|
||||
Status: Active
|
||||
Last reviewed: 2018-11-14
|
||||
---
|
||||
|
||||
# Comment list component
|
||||
@@ -14,11 +15,11 @@ Shows a list of comments.
|
||||
Populate the comments in the component class:
|
||||
|
||||
```ts
|
||||
import { CommentProcessModel } from '@alfresco/adf-core';
|
||||
import { CommentModel } from '@alfresco/adf-core';
|
||||
|
||||
export class SomeComponent implements OnInit {
|
||||
|
||||
comments: CommentProcessModel[] = [
|
||||
comments: CommentModel[] = [
|
||||
{
|
||||
id: 1,
|
||||
message: 'Comment number 1',
|
||||
@@ -43,7 +44,7 @@ export class SomeComponent implements OnInit {
|
||||
}
|
||||
];
|
||||
|
||||
onClickCommentRow(comment: CommentProcessModel) {
|
||||
onClickCommentRow(comment: CommentModel) {
|
||||
console.log('Clicked row: ', comment);
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user