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

ExtensionPage

Extends:

src/common/Component.js~ComponentPageAdminPage → ExtensionPage

Member Summary

Public Members
public
public
public

infoFields: {"discuss": string, "documentation": string, "support": string, "website": string, "donate": string, "source": string}

Method Summary

Public Methods
public

className(): *

public

content(): *

public
public

infoItems(): *

public

isEnabled(): *

public

onerror(e: *)

public

oninit(vnode: *): *

public

sections(): *

public

toggle()

public

topItems(): *

public

view(): *

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
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 Members

public changingState: boolean source

public extension: * source

public infoFields: {"discuss": string, "documentation": string, "support": string, "website": string, "donate": string, "source": string} source

Public Methods

public className(): * source

Return:

*

public content(): * source

Override:

AdminPage#content

Return:

*

public header(): undefined[] source

Override:

AdminPage#header

Return:

undefined[]

public infoItems(): * source

Return:

*

public isEnabled(): * source

Return:

*

public onerror(e: *) source

Params:

NameTypeAttributeDescription
e *

public oninit(vnode: *): * source

Override:

AdminPage#oninit

Params:

NameTypeAttributeDescription
vnode *

Return:

*

public sections(): * source

Return:

*

public toggle() source

public topItems(): * source

Return:

*

public view(): * source

Override:

AdminPage#view

Return:

*