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

Page

Extends:

src/common/Component.js~Component → Page

The Page component

Member Summary

Public Members
public

A class name to apply to the body while the route is active.

Method Summary

Public Methods
public

A collections of actions to run when the route changes.

public

oncreate(vnode: *)

public

oninit(vnode: *)

public

Public Members

public bodyClass: String source

A class name to apply to the body while the route is active.

Public Methods

public onNewRoute() source

A collections of actions to run when the route changes. This is extracted here, and not hardcoded in oninit, as oninit is not called when a different route is handled by the same component, but we still need to adjust the current route name.

public oncreate(vnode: *) source

Params:

NameTypeAttributeDescription
vnode *

public oninit(vnode: *) source

Params:

NameTypeAttributeDescription
vnode *

public onremove() source