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

SettingsPage

Extends:

flarum/components/UserPage~UserPage → SettingsPage

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

Method Summary

Public Methods
public

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

public

content(): *

public

init()

public

Generate a callback that will save a value to the given preference.

public

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

public

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

Public Methods

public accountItems(): ItemList source

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

Return:

ItemList

public content(): * source

Return:

*

public init() source

public preferenceSaver(key: String): Function source

Generate a callback that will save a value to the given preference.

Params:

NameTypeAttributeDescription
key String

Return:

Function

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