Socket
Socket
Sign inDemoInstall

ember-star-rating

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-star-rating

Star ratings for emberjs.


Version published
Weekly downloads
748
decreased by-53.34%
Maintainers
1
Weekly downloads
 
Created
Source

ember-star-rating

npm version Build Status FOSSA Status

Ember.js component for ratings.

Check out the dummy app here

Installing the Add-on

  • Ember.js v3.4 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

In your application's directory:

$ ember install ember-star-rating

Using the Add-on

Use the component in your template:

<StarRating @rating={{rating}} />

or with positional params.

{{star-rating rating}}

Configuration

OptionTypeDefaultInfo
ratingNumber0The current rating value
numStarsNumber5The number of "stars" to render
readOnlyBooleanfalseWhether the component can be edited or not
anyPercentBooleanfalseAllow setting a rating to any percentage. Example: 3.2
wholeOnlyBooleanfalseOnly allow integer rating values. Example: 1 - 5
useHalfStarsBooleantrueAllow half rating values. Example: 2.5
onHoverFunctionNOOPCalled on the mouseMove and mouseLeave events with the rating value at the time.
onClickFunctionNOOPCalled when the user selects a rating value. This is still invoked when readOnly is set to true
widthNumber26Width of the SVG element
heightNumber26Height of the SVG element
viewBoxString'0 0 26 26'ViewBox of the SVG element
svgPathString'...'Path value of the SVG element
fillColorString'yellow'Color of the SVG element that is considered full (has a rating)
baseColorString'lightgrey'Color of the SVG element that is considered empty

License

See LICENSE.md

FOSSA Status

Keywords

FAQs

Package last updated on 04 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc