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

SettingsPage

Extends:

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

oncreate(vnode: *)

public

oninit(vnode: *)

public
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