iovergaard / raty-fa Goto Github PK
View Code? Open in Web Editor NEWThis project forked from wbotelhos/raty
jQuery Raty FA - A Star Rating Plugin with Font Awesome
Home Page: http://jacob87.github.io/raty-fa/
This project forked from wbotelhos/raty
jQuery Raty FA - A Star Rating Plugin with Font Awesome
Home Page: http://jacob87.github.io/raty-fa/
Hey Jacob, thanks for this great plugin.
i want to ask if there's already feature like this? Because i just forked this repo, and make little change.
_createScore: function() {
var scoreName = this.opt.scoreName;
if (typeof scoreName === 'function'){
scoreName = this.opt.scoreName();
}
return $('<input />', { type: 'hidden', name: scoreName }).appendTo(this);
i hope this maybe help someone. thank you
Please add callback function after init on each element like plugin parameter
onInit: function(element) {
}
This plugin is compatible with Font Awesome 4, not with 5.
Here's what you need to change in jquery.raty-fa.js to make ik Font Awesome 5 compatible:
$.fn.raty.defaults = {
cancel : false,
cancelHint : 'Cancel this rating!',
cancelOff : 'fas fa-fw fa-minus-square',
cancelOn : 'fas fa-fw fa-check-square',
cancelPlace : 'left',
click : undefined,
half : false,
halfShow : true,
hints : ['bad', 'poor', 'regular', 'good', 'gorgeous'],
iconRange : undefined,
mouseout : undefined,
mouseover : undefined,
noRatedMsg : 'Not rated yet!',
number : 5,
numberMax : 20,
precision : false,
readOnly : false,
round : { down: .25, full: .6, up: .76 },
score : undefined,
scoreName : 'score',
single : false,
size : null,
space : true,
starHalf : 'fas fa-fw fa-star-half-alt',
starOff : 'far fa-fw fa-star',
starOn : 'fas fa-fw fa-star',
target : undefined,
targetFormat : '{score}',
targetKeep : false,
targetText : '',
targetType : 'hint',
width : false
};
Hi, the size option seems to not work
This is something that worked in the original raty plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.