Constructor Summary
| Public Constructor | ||
| public |
constructor(voteButton: HTMLElement) |
|
Method Summary
| Public Methods | ||
| public abstract |
getRequest(voteType: string, status: boolean): Request Returns a vote request for the data |
|
| public |
setLoading(state: boolean) Sets the loading state |
|
| public |
What to set vote too. |
|
| public |
setVoteActivity(activity: boolean) Sets vote activity |
|
| public |
setVoteTotal(value: number) Sets the vote total |
|
| public |
Toggles vote controller value. |
|
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(voteButton: HTMLElement) source
Override:
ViewController#constructorParams:
| Name | Type | Attribute | Description |
| voteButton | HTMLElement |
Public Methods
public abstract getRequest(voteType: string, status: boolean): Request source
Returns a vote request for the data
public setLoading(state: boolean) source
Sets the loading state
Params:
| Name | Type | Attribute | Description |
| state | boolean |
public async setVote(status: boolean) source
What to set vote too.
Params:
| Name | Type | Attribute | Description |
| status | boolean |
public setVoteActivity(activity: boolean) source
Sets vote activity
Params:
| Name | Type | Attribute | Description |
| activity | boolean | vote activity |
