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

Activity

Extends:

flarum/Component~Component → Activity

The Activity component represents a piece of activity of a user's activity feed. Subclasses should implement the description and content methods.

Props

  • activity

Method Summary

Public Methods
public

content(): VirtualElement

Get the content to show below the activity description.

public

description(): VirtualElement

Get the description of the activity.

public abstract

time(): Date

Get the time of the activity.

public abstract

user(): User

Get the user whose avatar should be displayed.

public

view(): *

Public Methods

public content(): VirtualElement source

Get the content to show below the activity description.

Return:

VirtualElement

public description(): VirtualElement source

Get the description of the activity.

Return:

VirtualElement

public abstract time(): Date source

Get the time of the activity.

Return:

Date

public abstract user(): User source

Get the user whose avatar should be displayed.

Return:

User

public view(): * source

Return:

*