Reference Source
import EventPost from 'flarum/components/EventPost.js'
public class | source

EventPost

Extends:

flarum/components/Post~Post → EventPost

The EventPost component displays a post which indicating a discussion event, like a discussion being renamed or stickied. Subclasses must implement the icon and description methods.

Props

  • All of the props for Post

Method Summary

Public Methods
public

attrs(): {"className": *}

public
public

Get the translation data for the description of the event.

public

Get the translation key for the description of the event.

public

Get the name of the event icon.

Public Methods

public attrs(): {"className": *} source

Return:

{"className": *}

public content(): undefined[] source

Return:

undefined[]

public descriptionData(): Object source

Get the translation data for the description of the event.

Return:

Object

public descriptionKey(): String source

Get the translation key for the description of the event.

Return:

String

public icon(): String source

Get the name of the event icon.

Return:

String