Skip to content

mohitrustagi/star-rating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

star-rating

Star Rating (Google Polymer based component)

This is a polymer based component. I call it 'star-rating'.

Usage:

<star-rating></star-rating>

Output:

*
**
***
****
*****

Options:

  • max-rating: Max rating a user can give. Default value is 5.
  • user-rating: Default user rating is 0. It is in sync with user rating or rating given by the user.

How to test?

Clone this project.
Install polymer-cli and nodejs6 or 7
Go to directory 'star-rating/polymersample' and run 'polymer serve'.
Once server is up, go to url 'http://127.0.0.1:8081/components/star-rating/‘

Enjoy!!

About

Star Rating (Google Polymer based component)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages