Closed Nageshwar closed 6 years ago
Hi @Nageshwar , not sure I follow. Isn't that what its happening right now? for ex. if I hover from 2.0 to 2.5 then 2.5 stars will be filled. please elaborate, thank you
Hello @nashio ,
I would like to Show the intial rating of star when the value will be 4.7 then the star will be 5 prefilled as please check screenshot.
but what actually happening is for 4.7 star the image is showing 4.5 stars not 5.
Did you understand now, what i mean?
I see, on initial load then. Yeah right now its rounding down, you need up. hm, I'm thinking maybe of adding an option to round both ways, could be useful.
Yes but half rounding will be great (Y)
For example 4.1 should be 4.5 not 5.
Thanks @nashio
yeah thats what I meant actually, 4.1 -> 4.5, instead of 4.0
Yes
That will be great (y)
Thanks in Advance
@Nageshwar
download the newest version and use the option, forceRoundUp: true
.
check the readme for reference: https://github.com/nashio/star-rating-svg/blob/master/README.md
let me know if that works for you
Great (y)
Thanks , I will surely let you know.
Yes it worked perfectly for my testcases: rating 4.7 it shows 5, rating 4.001 it shows 4.5 rating 4.00 it shows 4.
Great work @nashio
Hello Team,
I would like to show the Star values in this pattern
Is it possible to do that in this manner???
please reply asap that would be very helpful
Thanks Nageshwar Jha