1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00
Files
php-flarum/js/dist-typings/forum/components/ComposerBody.d.ts
flarum-bot 3d62a6af27 Bundled output for commit d268894e61
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-12-27 19:02:33 +00:00

52 lines
1.2 KiB
TypeScript

/**
* The `ComposerBody` component handles the body, or the content, of the
* composer. Subclasses should implement the `onsubmit` method and override
* `headerTimes`.
*
* ### Attrs
*
* - `composer`
* - `originalContent`
* - `submitLabel`
* - `placeholder`
* - `user`
* - `confirmExit`
* - `disabled`
*
* @abstract
*/
export default class ComposerBody extends Component<import("../../common/Component").ComponentAttrs, undefined> {
constructor();
composer: any;
/**
* Whether or not the component is loading.
*
* @type {Boolean}
*/
loading: boolean | undefined;
/**
* Check if there is any unsaved data.
*
* @return {boolean}
*/
hasChanges(): boolean;
/**
* Build an item list for the composer's header.
*
* @return {ItemList<import('mithril').Children>}
*/
headerItems(): ItemList<import('mithril').Children>;
/**
* Handle the submit event of the text editor.
*
* @abstract
*/
onsubmit(): void;
/**
* Stop loading.
*/
loaded(): void;
}
import Component from "../../common/Component";
import ItemList from "../../common/utils/ItemList";