Date: 2014-10-27
- enh #26: Add touch device support to enable touch and slide across stars.
- enh #27: Reset events on the rating element before every refresh.
- enh #28: Add rating.refresh event.
Date: 2014-10-13
-
enh #20, #21: Included hover validation routine and rating state change on hover. Following new configurable properties added:
hoverEnabled
: boolean whether hover functionality is enabled. This will dynamically change the stars and caption on mouse hover. Defaults totrue
. This functionality will only work on desktop devices and if the input is notdisabled
orreadonly
.hoverChangeCaption
: boolean control whether the caption should dynamically change on mouse hover. Defaults totrue
. Will be applicable only ifhoverEnabled
istrue
.hoverChangeStars
: boolean control whether the stars should dynamically change on mouse hover. Defaults totrue
. Will be applicable only ifhoverEnabled
istrue
.
-
enh #21: Following new events are added:
rating.hover
rating.hoverleave
-
enh #22: More correct minimum value and clear value validation through new
getWidthFromValue
method. -
enh #24: Set
clearValue
to default tomin
if not set.
Date: 2014-08-23
- enh #17: Dynamic configuration for
starCaptions
andstarCaptionClasses
using a function.
Date: 2014-05-27
- Change to entire plugin code to eliminate dependency of HTML5 input. Plugin size reduced to 8KB minified.
- Uses special JQuery routines to trigger star rating changes.
- Plugin support is now extended to all browsers including pre IE10
- Plugin support is now extended to all Touch based and mobile devices like iOS, Android.
- Removed cloning of inputs to allow better refreshing of input across ajax and other scenarios.
- Caption and Clear elements parameters treated as identifiers rather than JQuery object elements.
Date: 2014-05-08
- Bug #8,#9,#10: Correct cloning and conversion of field to a range slider input.
Date: 2014-04-25
- Revamp of entire plugin code. Cleverly leverages CSS3 styles, animations, and HTML5 input features to render the plugin.
- Render and display fractional star ratings. Configure number of stars, min, max, step, and theoretically support any fractional rating.
- Right to left (RTL) support enhancement. Optimally uses the
dir
attribute of the range input. - Bootstrap style is made optional and configurable. Can override CSS to use any style.
- Any star symbol (unicode or icon font) can be embedded instead of Glyphicon.
- Uses HTML 5 range input to change ratings. Polyfills for range input in case JQuery/Javascript is disabled.
- Automatically degrades to a normal SELECT dropdown input for browsers that do not support HTML 5 range input.
Date: 2014-04-04
- Widget is customizable for using any CSS markup to override Bootstrap styles.
- Clear button class customization added.
Date: 2014-03-10
Revamped the methods for usage across wider scenarios:
- Included
update
method to set a value of a rating via javascript. - Revamped the
refresh
method to enable refreshing all plugin options at runtime via parameters.
Date: 2013-10-01
Initial release. The following features are included in this release:
- Convert any HTML input to a star rating control. Recommended input is of
type = number
, which will help fallback to a number input for browsers not supporting JQuery or Javascript. - The plugin automatically converts an input with
type = number
to a star rating control if you set itsclass = rating
. All options to the input can be passed as HTML5data
attributes. - Involves pure CSS3 styling of the stars. Say goodbye to image sprites or playing with image backgrounds. Offers clean scalable vector icons for consistent display across devices.
- Specifically uses Bootstrap 3.x styles & glyphs. Can be combined to work better for Bootstrap styled projects (or input group addons).
- Ability to clear values and options for the stars. Control where the clear button element can be shown.
- Reset star rating to the initial value when the form is reset.
- Ability to control and display caption of the selected stars. Each rated star can have its own caption. Control where the caption element can be shown.
- Ability to size the rating control including the stars, caption, and clear button. Five prebuilt size templates are available
xl
,lg
,md
,sm
, andxs
. - Support for RIGHT TO LEFT (RTL) input. Automatically changes star styling for RTL.
- Triggers JQuery events for advanced development. Events currently available are
rating.change
,rating.clear
, andrating.reset
. - Disabled and readonly input star rating support.
- Size of the entire plugin is less than 9KB (about 6KB for the minified JS and 3KB for the minified CSS).