Socket
Socket
Sign inDemoInstall

ng-starrating

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-starrating

Star Rating Library using Angular


Version published
Weekly downloads
1K
increased by1.68%
Maintainers
1
Weekly downloads
 
Created
Source

ng-starrating

![npm version] License

Highly Customizable and Responsive Star Rating built using Angular.

For production, use the files from the dist/ folder.

Installation

Use one of the following methods to add the Star Rating library to your project:

  • Download ZIP
  • npm install ng-starrating

Usage

<div style="text-align:center">
  <h1>
    ng-starrating demo
  </h1>
  <star-rating value="5" checkedcolor="red" uncheckedcolor="black" size="24px" readonly="false"></star-rating>
</div>

Options

Here are the default options


checkedcolor: "gold",
uncheckedcolor: "gray",
size: "24px",
value: 0,
readonly: false,

checkedcolor:

Type: String

Checked color for the star. Default color is "gold". You can even use color codes.

uncheckedcolor:

Type: String

Un-checked color for the star. Default color is "gray". You can even use color codes.

size:

Type: String

Size of the Stars in pixels. Default size is 24px.

value:

Type: Number

Value of the Star Rating. Default value is 0. It can be between 0 to 5. It also supports half rating.

readonly:

Type: Boolean

Determines whether the star rating component is readonly.

Build

Star Rating uses npm to manage package dependencies.

Compatibility

  • All modern browsers

Contributing

All changes should be committed to the files in src/.

Changelog

v1.0.2 - [2018-12-26]

  • Minor fixes

v1.0.1 - [2018-12-26]

  • Initial release

License

MIT

Keywords

FAQs

Package last updated on 27 Dec 2018

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