npm i weighted-rating
const parentSelector = '#rating-wrapper';
const options = {
sliders: [
{ value: 30, name: 'rating-1' },
{ value: 25, name: 'rating-2' },
{ value: 25, name: 'rating-3' },
{ value: 20, name: 'rating-4' }
]
}
WRating.create({ parentSelector, options });
For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE.md file for details
Generated using TypeDoc