Reference Source
import AdminApplication from 'flarum/AdminApplication'
public class | source

AdminApplication

You can directly use an instance of this class. app

Extends:

Application → AdminApplication

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

history: *

Method Summary

Public Methods
public

getRequiredPermissions(permission: *): *

public

mount()

Inherited Summary

From class Application
public

alerts: *

public

Whether or not the app has been booted.

public

A local cache that can be used to store data at the application level, so that is persists between different routes.

public

data: *

public

drawer: *

public

The forum model for this application.

public

An ordered list of initializers to bootstrap the application.

public

modal: *

public

A map of routes, keyed by a unique route name.

public

The app's session.

public

The app's data store.

public

title: *

public
public

The app's translator.

private

An Alert that was shown as a result of an AJAX request error.

public

boot()

public

bootExtensions(extensions: *)

public

load(payload: *)

public

mount(basePath: string)

public

Get the API response document that has been preloaded into the application.

public

request(options: Object): Promise

Make an AJAX request, handling any low-level errors that may occur.

public

route(name: String, params: Object): String

Construct a URL to the route with the given name.

public

setTitle(title: String)

Set the <title> of the page.

public

setTitleCount(count: Integer)

Set a number to display in the <title> of the page.

public

Public Constructors

public constructor() source

Public Members

public extensionSettings: * source

public history: * source

Public Methods

public getRequiredPermissions(permission: *): * source

Params:

NameTypeAttributeDescription
permission *

Return:

*

public mount() source

Override:

Application#mount