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

Post

Extends:

flarum/Component~Component → Post

The Post component displays a single post. The basic post template just includes a controls dropdown; subclasses must implement content and attrs methods.

Props

  • post

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Set up a subtree retainer so that the post will not be redrawn unless new data comes in.

Method Summary

Public Methods
public

Get attributes for the post element.

public

Get the post's content.

public

view(): *

Public Constructors

public constructor() source

Public Members

public subtree: SubtreeRetainer source

Set up a subtree retainer so that the post will not be redrawn unless new data comes in.

Public Methods

public attrs(): Object source

Get attributes for the post element.

Return:

Object

public content(): Object source

Get the post's content.

Return:

Object

public view(): * source

Return:

*