Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unfortunately Half stars not working #39

Open
engharb opened this issue Sep 14, 2018 · 2 comments
Open

Unfortunately Half stars not working #39

engharb opened this issue Sep 14, 2018 · 2 comments

Comments

@engharb
Copy link

engharb commented Sep 14, 2018

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

@nashio
Copy link
Owner

nashio commented Oct 8, 2018

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

@minanabila
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants