new CommentBox()
Extends
Methods
-
commentBoxItemEdit()
-
When one comment box item opens, we want to tell everyone so that the others can close.
-
create()
-
Builds the comment box comprised of a header, scroller to contain comment box items, and navigation buttons.
-
disabledChanged()
-
We disable the new button if we're not allowed to create a comment, or if we've been told that the whole kind is to be disabled.
-
newItem()
-
The "New" button has been clicked. Open a new comment by adding a new model to the collection.
-
setupItem()
-
Renders the CommentBoxItem repeater
-
setValue()
-
- Source:
- To Do:
-
- Document the setValue method.
-
sort()
-
We sort comments by the date they were created, descending.