star-rating-svg
star-rating-svg copied to clipboard
Unfortunately Half stars not working
Hi,
I am using star-rating.svg but it works by default for fullStar and I tried to set that to half but does not work!
any idea?
thanks
Sorry for the late response, did you figure it out?
try removing the setting useFullStars
.
otherwise please show me your code and we'll figure it out
I have the same problem can you help me, please
my code
$(".rating").each(function () {
$(this).starRating({
totalStars: 5,
initialRating: 0.5,
starSize: 30,
strokeWidth: 30,
emptyColor: 'transparent',
hoverColor: 'darkorange',
ratedColor: 'darkorange',
activeColor: 'darkorange',
strokeColor: 'darkorange',
starShape: 'straight',
useFullStars: false,
useGradient: false,
disableAfterRate: false,
callback: function (currentRating, $el) {
// make a server call here
}
});
});