This package has been deprecated

Author message:

WARNING: This package has been renamed. Install ro-rating instead; see https://github.com/pirxpilot/rating

code42day-rating

1.0.1 • Public • Published

rating

Read-only numeric rating (0-100) displayed as stars. Click here to see the example.

Installation

$ component install code42day/rating

API

rating(el, value)

Add rating component to el and display the value

rating(el, options)

options is an object that allows specifying alternative star character and/or initial value

var rating = require('rating');
 
// use ★ and initial value 25
rating(parent, 25);
 
// use ❤ and initial value 50
rating(parent, {
  value: 50,
  star: '❤'  // ❤
});

rating.set(value)

Change the value of existing rating.

License

MIT

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i code42day-rating

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • deprecated.packages