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

Custom icon for half on #191

Open
ramachandranv opened this issue Sep 1, 2016 · 2 comments
Open

Custom icon for half on #191

ramachandranv opened this issue Sep 1, 2016 · 2 comments

Comments

@ramachandranv
Copy link

How can I set the custom icon for half on. I have 5 smileys for each range from 1-5. For each value a separate custom icon is used. Apart from star-half how do I set the half icon for each half value like 0.5, 1.5 etc.

@wbotelhos
Copy link
Owner

Try iconRange options.
Check the demo page to know how it works.

@ramachandranv
Copy link
Author

$.fn.raty.defaults.iconRange = [{ range: 1, on: 'images/1-on.png', off: 'images/1-off.png' }]

How do I specify the half icon for each range? I tried the below code but it doesn't work.

$.fn.raty.defaults.iconRange = [{ range: 1, on: 'images/1-on.png', off: 'images/1-off.png', half: 'images/1-half.png' }]

I need to set half icon for each range.

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

2 participants