DiscussionListItem
Extends:
The DiscussionListItem component shows a single discussion in the
discussion list.
Attrs
discussionparams
Member Summary
| Public Members | ||
| public |
|
|
| public |
Set up a subtree retainer so that the discussion will not be redrawn unless new data comes in. |
|
Method Summary
| Public Methods | ||
| public |
Determine whether or not the discussion is currently being viewed. |
|
| public |
elementAttrs(): {"className": *} |
|
| public |
Build an item list of info for a discussion listing. |
|
| public |
Mark the discussion as read. |
|
| public |
onbeforeupdate(vnode: *, old: *): * |
|
| public |
oncreate(vnode: *) |
|
| public |
oninit(vnode: *) |
|
| public |
Determine whether or not information about who started the discussion should be displayed instead of information about the most recent reply to the discussion. |
|
| public |
Determine whether or not the number of replies should be shown instead of the number of unread posts. |
|
| public |
view(): * |
|
Public Members
public highlightRegExp: * source
public subtree: SubtreeRetainer source
Set up a subtree retainer so that the discussion will not be redrawn unless new data comes in.
Public Methods
public infoItems(): ItemList source
Build an item list of info for a discussion listing. By default this is just the first/last post indicator.
public onbeforeupdate(vnode: *, old: *): * source
Params:
| Name | Type | Attribute | Description |
| vnode | * | ||
| old | * |
Return:
| * |
public oncreate(vnode: *) source
Params:
| Name | Type | Attribute | Description |
| vnode | * |
public oninit(vnode: *) source
Params:
| Name | Type | Attribute | Description |
| vnode | * |
public showFirstPost(): Boolean source
Determine whether or not information about who started the discussion should be displayed instead of information about the most recent reply to the discussion.
Reference
Source
