GithubHelp home page GithubHelp logo

Symbol option about bootstrap-star-rating HOT 3 CLOSED

kartik-v avatar kartik-v commented on August 19, 2024
Symbol option

from bootstrap-star-rating.

Comments (3)

kartik-v avatar kartik-v commented on August 19, 2024

Note: you must use a character / HTML entity code for the symbol (as per your icon font) and NOT THE CSS class (check the docs). You can cross check this entity code in the bootstrap CSS file and get it. For example you can render a bootstrap asterisk by:

<input id="input-21" value="0" class="rating" data-symbol="&#x2a" data-size="xl" >

Or you can use a normal qwerty keyboard character like below

<input id="input-21" value="0" class="rating" data-symbol="*" data-size="xl" >

A couple of more additional symbol examples have been added to the demo page. Have a look.

from bootstrap-star-rating.

HugoCornu avatar HugoCornu commented on August 19, 2024

Thanks a lot for your blazing fast answer.
It works great

from bootstrap-star-rating.

kartik-v avatar kartik-v commented on August 19, 2024

Yes... remember if passing symbol via javascript you must properly encode and send the HTML entity - else it will be parsed wrongly.

from bootstrap-star-rating.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.