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

AppearancePage

Extends:

src/common/Component.js~ComponentPageAdminPage → AppearancePage

Method Summary

Public Methods
public
public

headerInfo(): {"className": string, "icon": string, "title": *, "description": *}

public
public

saveSettings(e: *)

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 AdminPage
public
public

settings: {}

public

buildSettingComponent(setting: *): JSX.Element

buildSettingComponent takes a settings object and turns it into a component.

public
public

dirty(): *

public

header(): *

public

headerInfo(): {"className": *, "icon": *, "title": *, "description": *}

public

isChanged(): *

public

oninit(vnode: *)

public
public

saveSettings(e: *): *

public

setting(key: *, fallback: string): *

public
public

view(): *

Public Methods

public content(): undefined[] source

Override:

AdminPage#content

Return:

undefined[]

public headerInfo(): {"className": string, "icon": string, "title": *, "description": *} source

Override:

AdminPage#headerInfo

Return:

{"className": string, "icon": string, "title": *, "description": *}

public onsaved() source

Override:

AdminPage#onsaved

public saveSettings(e: *) source

Override:

AdminPage#saveSettings

Params:

NameTypeAttributeDescription
e *