Socket
Socket
Sign inDemoInstall

ember-star-rating

Package Overview
Dependencies
2
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-star-rating

Star ratings for emberjs.


Version published
Weekly downloads
737
increased by11.33%
Maintainers
1
Install size
21.2 MB
Created
Weekly downloads
 

Changelog

Source

[3.0.0]

Changed

  • Updated to latest Ember version
  • Minimum Node.js version bumped from 6.x to 8.x

Fixed

  • Fixed FastBoot compatability (@ehubbell)

Readme

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

Last updated on 04 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc