Package Exports
- star-rating
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (star-rating) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
<star-rating>
Web Component for generate a star rating using Polymer.
Demo
Usage
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130816/polymer.min.js"></script>
Import Custom Element:
<link rel="import" href="src/star-rating.html">Start using it!
<star-rating></star-rating>
Options
| Attribute | Options | Default | Description |
|---|---|---|---|
votes |
number | 0 | The votes count |
votesSum |
number | 0 | The votes sum |
starCount |
number | 5 | The number of star to display |
readyOnly |
true, false | false | Make the stars not interactable |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
History
Check Release list.
License
MIT License © Manoel Quirino