All Projects → wbotelhos → Raty

wbotelhos / Raty

Licence: mit
🌟 Raty - A Star Rating Plugin

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to Raty

rater-js
Star rating widget for the browser. Unlimited number of stars. No dependencies. No Jquery required.
Stars: ✭ 66 (-97.12%)
Mutual labels:  rating, voting, vote, star, star-rating
Laravel Love
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Stars: ✭ 822 (-64.14%)
Mutual labels:  vote, star, rating
react-star-ratings
A customizable svg star rating component for selecting x stars or visualizing x stars
Stars: ✭ 128 (-94.42%)
Mutual labels:  rating, star, star-rating
rating
⭐ A true Bayesian rating system with scope and cache enabled
Stars: ✭ 49 (-97.86%)
Mutual labels:  rating, vote, star-rating
yii2-vote
Provides voting for any model 👍 👎
Stars: ✭ 70 (-96.95%)
Mutual labels:  rating, voting, vote
easypoll-v3
EasyPoll Discord Bot | With EasyPoll, a Discord Poll Bot, you can easily create polls and your members can vote by clicking on a reaction very easily and quickly.
Stars: ✭ 35 (-98.47%)
Mutual labels:  voting, vote
Andratingbar
A RatingBar library for android, you can customize size ,color ,spacing and image easily!Support right to left。效果可以参看:https://juejin.im/post/6844904143220391949
Stars: ✭ 582 (-74.61%)
Mutual labels:  star, rating
React Native Star Rating
A React Native component for generating and displaying interactive star ratings
Stars: ✭ 724 (-68.41%)
Mutual labels:  star, rating
Yii2 Widget Rating
A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)
Stars: ✭ 47 (-97.95%)
Mutual labels:  star, rating
Hacktoberfest-2021
Make this Hacktoberfest a learning period and contribute to Great Open Source Projects.
Stars: ✭ 523 (-77.18%)
Mutual labels:  star, hacktoberfest2021
Awesomstar
Awesome (star)rating system with PHP, MySQL and pure JavaScript.
Stars: ✭ 15 (-99.35%)
Mutual labels:  star, rating
Laravel Reactions
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Stars: ✭ 58 (-97.47%)
Mutual labels:  star, rating
react-native-rating-element
A simple rating library for react native supporting: decimal points, direction aware icons, custom icon set from Ionicons, custom images and record rating given by users.
Stars: ✭ 19 (-99.17%)
Mutual labels:  rating, star-rating
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (-95.2%)
Mutual labels:  star, rating
Starrate
swift电商五星评价,星星评分控件,支持自定义数量、拖拽、间隔、设置最小星星数等操作
Stars: ✭ 85 (-96.29%)
Mutual labels:  star, rating
Vue Poll
A Vue.js component for voting
Stars: ✭ 115 (-94.98%)
Mutual labels:  voting, vote
Bootstrap Star Rating
A simple yet powerful JQuery star rating plugin with fractional rating support.
Stars: ✭ 985 (-57.02%)
Mutual labels:  star, rating
Rateit.js
Rating plugin for jQuery. Fast, Progressive enhancement, touch support, icon-font support, highly customizable, unobtrusive JavaScript (using HTML5 data-* attributes), RTL support, supports as many stars as you'd like, and also any step size.
Stars: ✭ 146 (-93.63%)
Mutual labels:  star, rating
MsalsasVotingBundle
Provides voting/rating management for your Symfony project.
Stars: ✭ 14 (-99.39%)
Mutual labels:  rating, voting
Mgstarratingview
MGStarRatingView is a view for rating.
Stars: ✭ 70 (-96.95%)
Mutual labels:  star, rating

Raty - A Star Rating Plugin

CI NPM Version Maintainability Sponsor

Rails Rating?

This is Rating: https://github.com/wbotelhos/rating

Usage with Image

  • jquery.raty.js
  • star-off.png
  • star-on.png
<script src="jquery.raty.js"></script>

<div></div>
$('div').raty();

Usage with Font

  • jquery.raty.js
  • jquery.raty.[eot|svg|ttf|woff]
  • jquery.raty.css
<link rel="stylesheet" href="jquery.raty.css">
<script src="jquery.raty.js"></script>

<div></div>
$('div').raty({ starType: 'i' });

Options

Property Default Description
cancelButton false Creates a cancel button to cancel the rating.
cancelClass 'raty-cancel' Name of cancel's class.
cancelHint 'Cancel this rating!' The cancel's button hint.
cancelOff 'cancel-off.png' Icon used on active cancel.
cancelOn 'cancel-on.png' Icon used inactive cancel.
cancelPlace 'left' Cancel's button position.
click undefined Callback executed on rating click.
half false Enables half star selection.
halfShow true Enables half star display.
hints ['bad', 'poor', 'regular', 'good', 'gorgeous'] Hints used on each star.
iconRange undefined Object list with position and icon on and off to do a mixed icons
iconRangeSame false All icons prior to selection will be the same as the selection.
mouseout undefined Callback executed on mouseout.
mouseover undefined Callback executed on mouseover.
noRatedMsg 'Not rated yet!' Hint for non rated elements when it's readOnly.
number 5 The number of stars that will be presented.
numberMax 20 Max number of stars star the option number will create.
path undefined A global path where the icon will be found.
precision false Enables the selection of a precise score.
readOnly false Turns the rating read-only.
round { down: .25, full: .6, up: .76 } Includes value attributes to do the score rounding math.
score undefined Initial rating.
scoreName 'score' Name of the hidden field that holds the score value.
single false Enables single star selection.
space true Puts space between the icons.
starHalf 'star-half.png' The name of the half star image.
starOff 'star-off.png' Name of the star image off.
starOn 'star-on.png' Name of the star image on.
target undefined Element selector where the score will be displayed.
targetFormat '{score}' Template to interpolate the score in.
targetKeep false If the last rating value will be kept on mouseout.
targetScore undefined Score field target avoiding hidden field creation
targetText '' Default text in a target.
targetType 'hint' Choose if target will receive a hint or the score number
starType 'img' Element used to represent a star.

Functions

Function Description
$('div').data('raty).score(); Get the current score.
$('div').data('raty).score(number); Set a score.
$('div').data('raty).click(number); Click on a star.
$('div').data('raty).readOnly(boolean); Change the read-only state.
$('div').data('raty).cancel(boolean); Cancel the rating. The last param force the click callback.
$('div').data('raty).move(number); Move the mouse to the given score point position.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].