Class: CommentBox

XV. CommentBox

Provides a container in which its components are a vertically stacked group of horizontal rows.
Made up of a header (which contains the title), a scroller (a scrolling list of comment box items), and navigation buttons (such as New, Attach, Detach, Open).
Use to implement a comment box that contains and manages multiple comments, represented as XV.CommentBoxItems.

new CommentBox()

Source:

Extends

Methods

commentBoxItemEdit()

When one comment box item opens, we want to tell everyone so that the others can close.
Source:

create()

Builds the comment box comprised of a header, scroller to contain comment box items, and navigation buttons.
Source:

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.
Source:

newItem()

The "New" button has been clicked. Open a new comment by adding a new model to the collection.
Source:

setupItem()

Renders the CommentBoxItem repeater
Source:

setValue()

Source:
To Do:
  • Document the setValue method.

sort()

We sort comments by the date they were created, descending.
Source: