rating
Read-only numeric rating (0-100) displayed as stars. Click here to see the example.
Installation
$ component install code42day/rating
API
rating(el, value)
Add rating component to el
and display the value
rating(el, options)
options is an object that allows specifying alternative star character and/or initial value
var rating = ; // use ★ and initial value 25; // use ❤ and initial value 50;
rating.set(value)
Change the value
of existing rating.
License
MIT