1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 01:31:40 +02:00
Files
php-flarum/js/dist-typings/forum/components/CommentPost.d.ts
flarum-bot cc29cf3e10 Bundled output for commit 2831ce226c
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-08-19 09:13:22 +00:00

41 lines
1.1 KiB
TypeScript

/**
* The `CommentPost` component displays a standard `comment`-typed post. This
* includes a number of item lists (controls, header, and footer) surrounding
* the post's HTML content.
*
* ### Attrs
*
* - `post`
*/
export default class CommentPost extends Post {
/**
* If the post has been hidden, then this flag determines whether or not its
* content has been expanded.
*
* @type {Boolean}
*/
revealContent: boolean | undefined;
/**
* Whether or not the user hover card inside of PostUser is visible.
* The property must be managed in CommentPost to be able to use it in the subtree check
*
* @type {Boolean}
*/
cardVisible: boolean | undefined;
refreshContent(): void;
contentHtml: any;
isEditing(): boolean;
/**
* Toggle the visibility of a hidden post's content.
*/
toggleContent(): void;
/**
* Build an item list for the post's header.
*
* @return {ItemList}
*/
headerItems(): ItemList;
}
import Post from "./Post";
import ItemList from "../../common/utils/ItemList";