javiertoledo / bootstrap-rating-input

Another plugin that eases the generation of rating stars for jQuery and Bootstrap
MIT License
319 stars 155 forks source link

Add support for custom icon classes #6

Closed javiertoledo closed 10 years ago

javiertoledo commented 10 years ago

Add support for specifying custom icon classes for active, inactive and remove. The preferred way would be something like this:

<input type="number" name="your_awesome_parameter" id="some_id" class="rating" data-active-icon="fa-check-circle-o" data-inactive-icon="fa-circle-o" data-clearable-icon="fa-trash-o"/>

This would let using Fontawesome, custom Gliphicons or even define custom classes with user-defined backgrounds.

jloosfelt commented 10 years ago

+1! thks for this awesome lib!

johncadigan commented 10 years ago

I have a fork which uses these. I had to add one more for the icon library, eg. FontAwesome or Bootstrap glyphicons.

I've also maintained backwards compatibility. If you don't include the extra info, it will go to the default Bootstrap glyphicons.

Let me know what you think!