About of AntLike button
AntLike button, is the jQuery like button plug-in of AntProduction.
Have a question about AntLike button ? Please use GitHub Issue.
Documentation of AntLike button
AntLike button, is a button with 2 states: like and unlike and a counter which counts the number of "like". The original state is unlike. When user click on AntLike button for the first time, the state become "like" and the counter is incremented. If the user click again the original state is restored and the counter is drecemented.
String.js is required: download
|HtmlContent [html]||The basic template Html to display the AntLike button.|
|like [json]||Like is a json object that contains description of "like" state. It's compounded by :
|unlike [json]||Unlike is a json object that contains description of "unlike" state. It's compounded by :
|events [json]||Events is a json object that contains description of events. 2 events are availiables :
|nbLikes [integer]||the current value of AntLike button counter|
|readOnly [boolean]||Is the parameter to disable events of AntLike button.|
Is the parameter to define the CSS style of the AntLike button.
|userLike [boolean]||the current state of AntLike button|
Triggers of AntLike button
Trigger to update current state and value of AntLike button
|likeVm [json object]||Json object compounded like this:
Samples of AntColorPicker
|Basic sample of AntLike button.||Try it|
|Sample of AntLike button based on Ajax Post requests for loading and updating.||Try it|
|Sample of paired AntLike button.||Try it|