import AnswerVoteViewController from '~/controllers/AnswerVoteViewController.js'
AnswerVoteViewController
Extends:
Voting on answers
Constructor Summary
Public Constructor | ||
public |
constructor(voteButton: HTMLElement, opts: Object) Creates an answer view controller |
Method Summary
Public Methods | ||
public |
|
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 |
From class VoteViewController | ||
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. |
Public Constructors
public constructor(voteButton: HTMLElement, opts: Object) source
Creates an answer view controller
Override:
VoteViewController#constructorParams:
Name | Type | Attribute | Description |
voteButton | HTMLElement | ||
opts | Object |
Public Methods
public getRequest() source
Returns a vote request for the data