Skip to content

Repository files navigation

NPM versionBuild Status

rating

Read-only numeric rating (0-100) displayed as stars. Click here to see the example.

Installation

$ npm install ro-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

varrating=require('rating');// use ★ and initial value 25rating(parent,25);// use ❤ and initial value 50rating(parent,{value: 50,star: '❤'// ❤});

rating.set(value)

Change the value of existing rating.

License

MIT

MIT © Damian Krzeminski

About

Displays stars based on numeric rating (read-only).

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages