Reference Source
import DiscussionRenamedPost from 'flarum/components/DiscussionRenamedPost'
public class | source

DiscussionRenamedPost

Extends:

src/common/Component.js~ComponentPostEventPost → 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

classes(string: *): string[]

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
public

view(): *

From class EventPost
public

content(): *

public

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
public

Get the name of the event icon.

Public Methods

public description(data: *): * source

Get the description text for the event.

Override:

EventPost#description

Params:

NameTypeAttributeDescription
data *

Return:

*

public descriptionData(): {"old": *, "new": *} source

Get the translation data for the description of the event.

Override:

EventPost#descriptionData

Return:

{"old": *, "new": *}

public icon(): string source

Get the name of the event icon.

Override:

EventPost#icon

Return:

string