ThreadedCommentCollection
ThreadedCommentCollection class
Represents the list of threaded comments.
class ThreadedCommentCollection;
Methods
| Method | Description |
|---|---|
| get(number) | Gets the threaded comment by the specific index. |
| add(string, ThreadedCommentAuthor) | Adds a threaded comment; |
get(number)
Gets the threaded comment by the specific index.
get(index: number) : ThreadedComment;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The index |
Returns
add(string, ThreadedCommentAuthor)
Adds a threaded comment;
add(text: string, author: ThreadedCommentAuthor) : number;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | string | The text of the threaded comment. |
| author | ThreadedCommentAuthor | The author of the threaded comment |