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

Is it possible to have hint for each half star ? #193

Open
toregua opened this issue Oct 10, 2016 · 0 comments
Open

Is it possible to have hint for each half star ? #193

toregua opened this issue Oct 10, 2016 · 0 comments

Comments

@toregua
Copy link

toregua commented Oct 10, 2016

First, I really appreciate your raty plugin and I thank you a lot for that.

I have a question : is it possible to add a title to each half star rate ?

I try with hints like that with ten values and half to true :

hints: ['Beurk', 'Mauvais', 'Vraiment pas terrible', 'Limite', 'Moyen', 'Pas mal', 'Bon', 'Très bon', 'Excellent', 'Parfait'],

but only the first five values are used. I tried to play with precision = true with no success.

Here is my full raty initialization :

$.fn.raty.defaults = { cancel: false, cancelClass: 'raty-cancel', cancelHint: 'Cancel this rating!', cancelOff: 'cancel-off.png', cancelOn: 'cancel-on.png', cancelPlace: 'left', click: undefined, half: true, halfShow: true, //hints: ['Beurk', 'Mauvais', 'Vraiment pas terrible', 'Limite', 'Moyen', 'Pas mal', 'Bon', 'Très bon', 'Excellent', 'Parfait'], hints: ['Beurk', 'Mauvais', 'Pas mal', 'Bon', 'Addictif'], iconRange: undefined, mouseout: undefined, mouseover: undefined, noRatedMsg: 'Pas encore de note', number: 5, numberMax: 5, path: root + '/Content/Images/AddictLive/stars/', precision: false, readOnly: false, round: { down: 0.25, full: 0.6, up: 0.76 }, score: undefined, scoreName: 'score', single: false, space: true, starHalf: 'star-half.png', starOff: 'star-off.png', starOn: 'star-on.png', starType: 'img', target: undefined, targetFormat: '{score}', targetKeep: false, targetScore: undefined, targetText: '', targetType: 'hint' };
Thank you in advance for your help

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

1 participant