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

SettingsPage

Extends:

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

The SettingsPage component displays the user's settings control panel, in the context of their user profile.

Member Summary

Public Members
public

Method Summary

Public Methods
public

Build an item list for the user's account settings.

public

content(): *

public

Build an item list for the user's notification settings.

public

oninit(vnode: *)

public

Build an item list for the user's privacy settings.

public

Build an item list for the user's settings controls.

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 discloseOnlineLoading: boolean source

Public Methods

public accountItems(): ItemList source

Build an item list for the user's account settings.

Return:

ItemList

public content(): * source

Get the content to display in the user page.

Override:

UserPage#content

Return:

*

public notificationsItems(): ItemList source

Build an item list for the user's notification settings.

Return:

ItemList

public oninit(vnode: *) source

Override:

UserPage#oninit

Params:

NameTypeAttributeDescription
vnode *

public privacyItems(): ItemList source

Build an item list for the user's privacy settings.

Return:

ItemList

public settingsItems(): ItemList source

Build an item list for the user's settings controls.

Return:

ItemList