CommentPost
Extends:
The CommentPost
component displays a standard comment
-typed post. This
includes a number of item lists (controls, header, and footer) surrounding
the post's HTML content.
Attrs
post
Member Summary
Public Members | ||
public |
Whether or not the user hover card inside of PostUser is visible. |
|
public |
contentHtml: * |
|
public |
If the post has been hidden, then this flag determines whether or not its content has been expanded. |
Method Summary
Public Methods | ||
public |
content(): * |
|
public |
elementAttrs(): * |
|
public |
Build an item list for the post's header. |
|
public |
isEditing(): * |
|
public |
oncreate(vnode: *) |
|
public |
oninit(vnode: *) |
|
public |
onupdate(vnode: *) |
|
public |
|
|
public |
Toggle the visibility of a hidden post's content. |
Inherited Summary
From class Post | ||
public |
|
|
public |
Set up a subtree retainer so that the post will not be redrawn unless new data comes in. |
|
public |
Build an item list for the post's actions. |
|
public |
Get the post's classes. |
|
public |
Get the post's content. |
|
public |
Get attributes for the post element. |
|
public |
Build an item list for the post's footer. |
|
public |
onbeforeupdate(vnode: *): * |
|
public |
oninit(vnode: *) |
|
public |
onupdate(vnode: *) |
|
public |
view(): * |
Public Members
public cardVisible: Boolean source
Whether or not the user hover card inside of PostUser is visible. The property must be managed in CommentPost to be able to use it in the subtree check
public contentHtml: * source
Public Methods
public elementAttrs(): * source
Get attributes for the post element.
Override:
Post#elementAttrsReturn:
* |
public oncreate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public onupdate(vnode: *) source
Override:
Post#onupdateParams:
Name | Type | Attribute | Description |
vnode | * |