Vote
// primary syntax
<Boolean> vote(<Object> votesPerIndeciesHash)
// alternative syntax
<Boolean> vote(<Integer> optionIndex)
Votes for specified option index (starting with 0) and return
true
when total votes not more than maximum number of votes a user can cast.// primary syntax
element.vote({0: 2});
// alternative syntaxes
element.vote(0);
// equals to =>
element.vote({0: 1});
Last modified 2yr ago