raty

Raty - A Star Rating Plugin

MIT License

Downloads
31.3K
Stars
2.4K
Committers
36

Bot releases are visible (Hide)

raty - v4.3.0 Latest Release

Published by wbotelhos 6 months ago

  • Adds missing builded files
  • Updates UPGRADE.md guide by markvantilburg
raty - v4.2.0

Published by wbotelhos about 1 year ago

Update

Bugfix

raty - v4.1.0

Published by wbotelhos about 2 years ago

News

raty - v4.0.0

Published by wbotelhos about 2 years ago

Break Change

  • The jQuery dependency was dropped, so the syntax to start Raty was changed, check the UPGRADE.md;
  • The global configuration $.raty.option = 'value' was removed;
  • The callback click, mouseover, and mouseout now has the this scope being the Raty class instance and the following arguments: score, element, the event;
  • The callback number, readOnly, score, scoreName, target, and path, now has the this scope being the Raty class instance and the single argument: element;
  • The functions now are called from the Raty instance;
  • When click function is called, we don't really have an original event, so instead to receive a fake event new Event('click'), an undefined value is provided.

Update

  • The read-only function now uses pointerEvents over unbind the listeners;
raty - v3.1.1

Published by wbotelhos about 3 years ago

Bugfix

raty - v3.1.0

Published by wbotelhos about 3 years ago

News

  • Adds iconRangeSame option where the previous stars will be the same as the selected one; #135 by viniciusjl

Update

raty - v3.0.0

Published by wbotelhos almost 4 years ago

Break Change

  • Function destroy was removed;
  • Function reload was removed;
  • Function set was removed;
  • Functions now is accessed via element.data('raty').FUNCTION_NAME();
  • Option cancel was renamed to cancelButton;

Bugfix

Update

  • Grammars fixes; #217 by tfantina
  • All the code were migrated to pure Prototype. Vanilla JS coming soon!;
raty - v2.9.0

Published by wbotelhos almost 4 years ago

Changes

Drops engines from package.json for greater flexibility;

raty - v2.8.0

Published by wbotelhos almost 7 years ago

News

  • Add support to configure options via $.data().
raty - v2.7.1

Published by wbotelhos about 8 years ago

Fixes

  • Fix readOnly when using fonts; (Amaia Baigorri)

News

  • Added Bower package; (yadhu)
  • Added path options as callback; (tyler-king)
raty - v2.7.0

Published by wbotelhos almost 10 years ago

Fixes

  • Function move was losing precision with float with more then one digit;
  • Function move was losing the saved options data;
  • With half enable, mousemove was not changing to full star after 0.5 point;
  • With half enable, score field was receiving precision value. (reported by hoangnham01)

Changes

  • If you returns false into click callback, the action will be prevented;
  • When precision is on it won't force targetType to be score anymore.

News

  • Added support to float hints;
raty - v2.6.0

Published by wbotelhos over 10 years ago

Fixes

  • Target was not showing the score when half was enabled; (andersonba)
  • Fixed some JS Lint warnings; (Qazzian)
  • Cancel button mouseleave must yiels no score as undefined not null;
  • The numberMax now sets the stars between 1...numberMax instead 0...numberMax.

Changes

  • path now is undefined by default;
  • The {score} placeholder on targetFormat option is no longer mandatory;
  • On click method, if click callback is not defined, it will be ignore instead of throw error;
  • Option size was removed! Raty will discover it;
  • Option width was removed! It is a bad idea force a width on this responsive days. Try inline-block for fit;
  • Option size was removed! Raty will discover it;
  • Option width was removed! It is a bad idea force a width on this responsive days. Try inline-block for fit.

News

  • Added option targetScore to choose where the score will be setted; (byhoratiss)
  • Added function move to move the cursor through stars;
  • Put the library over Travis Continuous Integration; (danielpsf)
  • Added option starType to be possible change from image to other element like i and use font to render the stars;
  • Option target accepts callback;
  • Added option cancelClass to choose the class name for cancel button.