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

DiscussionsUserPage

Extends:

src/common/components/Page.js~PageUserPage → DiscussionsUserPage

The DiscussionsUserPage component shows a discussion list inside of a user page.

Member Summary

Public Members
public

state: *

Method Summary

Public Methods
public

content(): *

public

oninit(vnode: *)

public

show(user: *)

Inherited Summary

From class UserPage
public
public

The user this page is for.

public

content(): VirtualElement

Get the content to display in the user page.

public

loadUser(username: String)

Given a username, load the user's profile from the store, or make a request if we don't have it yet.

public

Build an item list for the navigation in the sidebar.

public

oninit(vnode: *)

public

Build an item list for the content of the sidebar.

public

view(): *

protected

show(user: User)

Initialize the component with a user, and trigger the loading of their activity feed.

Public Members

public state: * source

Public Methods

public content(): * source

Get the content to display in the user page.

Override:

UserPage#content

Return:

*

public oninit(vnode: *) source

Override:

UserPage#oninit

Params:

NameTypeAttributeDescription
vnode *

public show(user: *) source

Initialize the component with a user, and trigger the loading of their activity feed.

Override:

UserPage#show

Params:

NameTypeAttributeDescription
user *