FollowModalTemplate
Extends:
The modal showing followers or following.
Constructor Summary
Public Constructor | ||
public |
constructor(user: User, followType: FollowType) Creates the modal which can be re-used |
Member Summary
Public Members | ||
public |
|
|
public |
The request, don't call since it'll mess up pagination. |
|
public |
|
Protected Members | ||
protected |
The loading sign (i.e. |
Method Summary
Public Methods | ||
public |
async didInitialLoad() |
|
public |
Loads the next page |
Inherited Summary
From class Template | ||
public static get |
An empty template |
|
public static |
fromId(id: string, type: TemplateType): Template Performs a |
|
public static |
fromInnerHTML(wrapper: HTMLElement, innerHTML: string, type: TemplateType): Template From innerHTML will wrap in div |
|
public static |
fromText(text: string, type: TemplateType): Template Creates template |
|
public get |
underlyingNode: HTMLElement Returns the underlying element |
|
public |
defineLinkedClass(name: string, className: string, node: HTMLElement) Defines a linked class |
|
public |
defineLinkedInput(name: string, input: HTMLElement) Defines a linked input |
|
public |
defineLinkedText(name: string, defaultValue: string): Text Creates a field w/ updating text |
|
public abstract |
async didInitialLoad() Called when loaded the first time |
|
public abstract |
didLoad() Called when the view has loaded |
|
public |
Called when disappeared |
|
public |
getParent(defaultElement: HTMLElement): HTMLElement Gets the original parent or else a default |
|
public |
loadBeforeContext(elem: HTMLElement): HTMLElement Loads before an element |
|
public |
loadInContext(parent: HTMLElement, allowDupliacte: boolean): HTMLElement Loads the template in a context |
|
public |
loadReplacingContext(source: HTMLElement): HTMLElement Loads and replaces |
|
public |
prependInContext(parent: HTMLElement, allowDupliacte: boolean): HTMLElement Prepends the template in a context |
|
public |
Removes from the context. |
|
public |
unique(): HTMLElement Returns a unique instance of the template as an HTMLElement. |
|
public |
async willInitialLoad() Called before loaded the first time |
|
public |
willLoad() Called right before the view will appear on screen |
|
public |
Called before disappearing |
From class ModalViewTemplate | ||
public set |
Sets the requested width of the modal. |
|
public |
body: Element This body instance |
|
public |
Available when mounted |
|
public |
Reactive subtitle |
|
public |
Reactive title |
Public Constructors
public constructor(user: User, followType: FollowType) source
Creates the modal which can be re-used
Override:
ModalViewTemplate#constructorParams:
Name | Type | Attribute | Description |
user | User | The user to get modal for |
|
followType | FollowType | What to show, followers or following? |
Public Methods
public async didInitialLoad() source
Called when loaded the first time