NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #2817 most downloaded on Packagist
A simple yet powerful JQuery star rating plugin for Bootstrap.
Latest stable
v4.1.2
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 2.0 years
Nearly every release is documented
notes for 31 of 31 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
31 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Date: 20-Sep-2021 - Simplify NPM module handling.
Date: 20-Sep-2021
(enh #215): Correct NPM module handling.
Date: 11-Sep-2021
(bug #213): Correct mousenter event to mouseenter.
Date: 25-Jul-2021
mousenter event to mouseenter.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Correct minThreshold default value.
Date: 21-May-2021
minThreshold default value.(enh #209): Enhancements to support BS 5.x (and 4.x/3.x).
Date: 21-May-2021
(enh #208): Corrected positioning of the base input on which the rating is triggered.
Date: 20-May-2021
minThreshold which allows a star rated with minimum value always. The initial value
of the rating is set to minThreshold if it has a value undefined or a value less than minThresholdminThreshold value must be a value between the min and max valuesminThreshold is set to less than min the plugin will default minThreshold to the min valueminThreshold is set to greater than max the plugin will default minThreshold to the max valuekeyboardEnabled - defaults to true
tab keyboard button to navigate to the ratingright and arrow left keyboard buttons to change the rating valuemouseEnabled - defaults to true
starTitles (can be set as object or function) - will set the title for each starrating:mouseenter and rating:mouseleave$('#ratingInput').on('rating:mouseenter rating:mouseleave', function(e, index, status, $star) {
console.log(index); // the index number of the star where the event was triggered
console.log(status); // whether the mouse event was triggered on `empty-star` or `filled-star`
console.log($star); // the current star jquery object where event was triggered
console.log($star.attr('title')); // can get properties of the star object
});
(enh #195): Update Bootstrap dependency.
Date: 25-May-2019
(enh #189): Add Bengali Translations.
Date: 04-Oct-2018
showCaption when displayOnly is true.Enhancements to support Bootstrap v4.x.
Date: 15-Sep-2018
fas theme.showCaptionAsTitle
(bug #173): Correct rating:change event.
Date: 03-Nov-2017
rating:change event.rating: instead of rating.Chronological sorting of issues and enhancements in the CHANGE log.
Date: 27-Aug-2017
zeroAsNull to treat zero value rating as null.required attribute for input.(bug #99): Correct documentation for refresh method.
Date: 28-Feb-2016
showCaption is false.refresh method.create, destroy, refresh, clear, reset to return the rating element jQuery objectpeerDependencies instead of dependencies.> NOTE: Release v4.0.0 is a modified rewrite with various new enhancements and BC breaking features. It allows rendering richer markup for star symbol
Date: 16-Feb-2016
NOTE: Release v4.0.0 is a modified rewrite with various new enhancements and BC breaking features. It allows rendering richer markup for star symbols and offers theming support.
(enh #91): Add SVG Icon Support
(enh #94): Add Theming Functionality.
theme will assign a CSS class rating-<theme-name> to the rating container.krajee-svg (for displaying svg icons)krajee-uni (for displaying unicode symbols as stars)krajee-fa (for displaying font awesome icons)Various new features and BC breaking enhancements
symbol, glyphicon, ratingClass properties will be removed.theme property (and can also be implemented using the containerClass property).filledStar - will allow one to set the markup for filledStar - will default to
<i class="glyphicon glyphicon-star"></i>emptyStar - will allow one to set the markup for emptyStar - will default to
<i class="glyphicon glyphicon-star-empty"></i>krajee-svg theme that contains two different ready to use SVG icons).(enh #95): Add display only capability.
(enh #96): Add support for bootstrap-sass official repo via sass branch.
(enh #97): Add animate property to enable / disable animation of star highlight on hover / change.
(enh #88): Add German Translations.
Date: 16-Feb-2016
(enh #84): Add Ukranian Translations.
Date: 22-Jan-2016
(enh #76): Add Russian Translations.
Date: 29-Dec-2015
touches and changedTouches validation.(enh #71): Fix Error: Cannot read property 'pageX' of undefined error on touch devices.
Date: 22-Nov-2015
Error: Cannot read property 'pageX' of undefined error on touch devices.(enh #47): Styling enhancements for printed output (better star colors and hide clear button).
Date: 20-Sep-2015
String.prototype.replaceAll and implement regex replace.package.json for npm install.(enh #58): Remove redundant tooltip title on hover of caption element.
Date: 18-Jun-2015
(enh #45): Validate on touchstart for devices that do not support click event.
Date: 10-May-2015
touchstart for devices that do not support click event.clear and caption elements.(enh #44): Ability to integrate with other font icon CSS frameworks like Font Awesome.
Date: 13-Feb-2015
ratingClass added to allow configuring other icon framework css classes.(enh #39): Prevent invalid star rating for numStars > 5 with default value & hoverChange enabled.
Date: 31-Jan-2015
(enh #35): Added destroy method to destroy the rating plugin.
Date: 16-Dec-2014
destroy method to destroy the rating plugin.create method to create the rating plugin (typically after a destroy).(bug #32): Prevent invalid star ratings if cursor is close to left/right edge of star array.
Date: 17-Nov-2014
Set release to stable in composer.json.
Date: 08-Nov-2014
enh #26: Add touch device support to enable touch and slide across stars.
Date: 2014-10-27
enh #20, #21: Included hover validation routine and rating state change on hover. Following new configurable properties added:
Date: 2014-10-13
hoverEnabled: boolean whether hover functionality is enabled. This will dynamically change the stars and caption on mouse hover. Defaults to true. This functionality will only work on desktop devices and if the input is not disabled or readonly.hoverChangeCaption: boolean control whether the caption should dynamically change on mouse hover. Defaults to true. Will be applicable only if hoverEnabled is true.hoverChangeStars: boolean control whether the stars should dynamically change on mouse hover. Defaults to true. Will be applicable only if hoverEnabled is true.rating.hoverrating.hoverleavegetWidthFromValue method.clearValue to default to min if not set.enh #17: Dynamic configuration for starCaptions and starCaptionClasses using a function.
Date: 2014-08-23
starCaptions and starCaptionClasses using a function.Change to entire plugin code to eliminate dependency of HTML5 input. Plugin size reduced to 8KB minified.
Date 2014-05-27
Bug #8,#9,#10: Correct cloning and conversion of field to a range slider input.
Date 2014-05-08
NEW RELEASE
Date: 2014-04-25
dir attribute of the range input.This release is superseded by v2.0.0 which is a complete rewrite of the plugin to support fractional ratings.
This release is superseded by v2.0.0 which is a complete rewrite of the plugin to support fractional ratings.
The v1.2.0 is the last release which used a different technique of hierarchical tags to render stars. The version would not be supported going forward.
With v2.0.0, an inbuilt range validation is used for controlling the stars. Refer the new list of features and changes for v2.0.0 here.
One column per quarter.