mirror of
https://github.com/flarum/core.git
synced 2025-08-09 09:57:06 +02:00
Bundled output for commit 0a2b28ebe0
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
30
js/dist-typings/common/components/Page.d.ts
vendored
30
js/dist-typings/common/components/Page.d.ts
vendored
@@ -1,27 +1,15 @@
|
||||
import Component from '../Component';
|
||||
export interface IPageAttrs {
|
||||
key?: number;
|
||||
routeName: string;
|
||||
}
|
||||
/**
|
||||
* The `Page` component
|
||||
*
|
||||
* @abstract
|
||||
*/
|
||||
export default class Page extends Component<import("../Component").ComponentAttrs, undefined> {
|
||||
constructor();
|
||||
/**
|
||||
* A class name to apply to the body while the route is active.
|
||||
*
|
||||
* @type {String}
|
||||
*/
|
||||
bodyClass: string | undefined;
|
||||
/**
|
||||
* Whether we should scroll to the top of the page when its rendered.
|
||||
*
|
||||
* @type {Boolean}
|
||||
*/
|
||||
scrollTopOnCreate: boolean | undefined;
|
||||
/**
|
||||
* Whether the browser should restore scroll state on refreshes.
|
||||
*
|
||||
* @type {Boolean}
|
||||
*/
|
||||
useBrowserScrollRestoration: boolean | undefined;
|
||||
export default abstract class Page<CustomAttrs extends IPageAttrs = IPageAttrs> extends Component<CustomAttrs> {
|
||||
oninit(vnode: any): void;
|
||||
oncreate(vnode: any): void;
|
||||
onremove(vnode: any): void;
|
||||
}
|
||||
import Component from "../Component";
|
||||
|
Reference in New Issue
Block a user