import LoadMoreCommentsViewController from '~/controllers/LoadMoreCommentsViewController.js'LoadMoreCommentsViewController
Extends:
Manages the "Load More" button
Constructor Summary
| Public Constructor | ||
| public |
constructor(button: HTMLElement, owner: Post | Answer, parentList: CommentListViewController, shouldExpand: boolean) Creates the write commemt button |
|
Member Summary
| Public Members | ||
| public get |
Gets the loading status |
|
| public set |
Sets the loading status |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
async contentsForPage(): Object Gets the comments for a given page |
|
| public |
async loadNextPage() Submits this form |
|
Inherited Summary
| From class ViewController | ||
| public static |
Creates a view controller directly for all members of a class. |
|
| public static |
of(elem: string | Element): ViewController Returns a canolical VC of an element if it exists |
|
Public Constructors
public constructor(button: HTMLElement, owner: Post | Answer, parentList: CommentListViewController, shouldExpand: boolean) source
Creates the write commemt button
Override:
ViewController#constructorParams:
| Name | Type | Attribute | Description |
| button | HTMLElement | The loading button |
|
| owner | Post | Answer | The owner post |
|
| parentList | CommentListViewController | The list view which to place comment in. |
|
| shouldExpand | boolean |
|
Follows 'expansion' semantics |
