We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 or is there any plan for supporting in-html attribute?
Instead of
jQuery('.ticket-raty').raty({ starOff: 'img/raty/star-off.png' });
we would be able to do
<div class="ticket-raty" data-raty-star-on="img/raty/star-on.png"></div>
And thus focusing more on pure HTML + library as oppose to HTML + JS + Library.
The text was updated successfully, but these errors were encountered:
Here the pull request #168
If you want you can costumize youron code like this:
// #jQuery.plugin - raty for a star rating view if ($().raty) { $('.getraty').each(function () { // startype = i var startype = $(this).data('startype'); if (typeof startype == 'undefined' || startype.length == 0) startype = 'i'; // readonly = true var readonly = $(this).data('readonly'); if (typeof readonly == 'undefined' || readonly.length == 0) readonly = true; // score = 5 var score = $(this).data('readonly'); if (typeof score == 'undefined' || score.length == 0) score = 5; $(this).raty({starType: startype, readOnly: readonly, score: score}); }); } // END - #jQuery.raty
Sorry, something went wrong.
No branches or pull requests
Is it possible or is there any plan for supporting in-html attribute?
Instead of
we would be able to do
And thus focusing more on pure HTML + library as oppose to HTML + JS + Library.
The text was updated successfully, but these errors were encountered: