star-rating-svg icon indicating copy to clipboard operation
star-rating-svg copied to clipboard

Unfortunately Half stars not working

Open engharb opened this issue 6 years ago • 2 comments

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

engharb avatar Sep 14 '18 12:09 engharb

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

nashio avatar Oct 08 '18 08:10 nashio

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
        }
    });
});

minanabila avatar Jun 21 '20 09:06 minanabila