import DiscussionRenamedPost from 'flarum/forum/components/DiscussionRenamedPost'
DiscussionRenamedPost
The DiscussionRenamedPost
component displays a discussion event post
indicating that the discussion has been renamed.
Attrs
- All of the attrs for EventPost
Method Summary
Public Methods | ||
public |
description(data: *): * |
|
public |
descriptionData(): {"old": *, "new": *} |
|
public |
|
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(): * |
From class EventPost | ||
public |
content(): * |
|
public |
description(data: Object): String | Object Get the description text for the event. |
|
public |
Get the translation data for the description of the event. |
|
public |
Get the translation key for the description of the event. |
|
public |
elementAttrs(): * |
|
public |
Get the name of the event icon. |
Public Methods
public description(data: *): * source
Get the description text for the event.
Override:
EventPost#descriptionParams:
Name | Type | Attribute | Description |
data | * |
Return:
* |
public descriptionData(): {"old": *, "new": *} source
Get the translation data for the description of the event.
Override:
EventPost#descriptionDataReturn:
{"old": *, "new": *} |