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

DiscussionsUserPage

Extends:

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

A class name to apply to the body while the route is active.

public

Whether we should scroll to the top of the page when its rendered.

public

Whether the browser should restore scroll state on refreshes.

public

oncreate(vnode: *)

public

oninit(vnode: *)

public

onremove(vnode: *)

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 *