ThreadedCommentCollection
Contents
[
Hide
]ThreadedCommentCollection class
Represents the list of threaded comments.
class ThreadedCommentCollection implements Iterable<ThreadedComment>;
Methods
[Symbol.iterator](): Iterator<ThreadedComment>
Returns an iterator over the items in the collection. Enables use of for...of, spread syntax, and Array.from().
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:
getCount()
@deprecated. Please use the ‘count’ property instead. Gets the number of elements contained in.
getCount() : number;
isNull()
Checks whether the implementation object is null.
isNull() : boolean;
