Giter VIP home page Giter VIP logo

Comments (6)

haunguyen90 avatar haunguyen90 commented on August 19, 2024

@dreyescat, any info for that ?

from react-rating.

dreyescat avatar dreyescat commented on August 19, 2024

Yes. The fractions property allows you to specify in how many parts a symbol is divided. So, if you want half stars you just need to divide the symbol in 2 fractions:

<Rating fractions={2} />

I have a fractional jsfiddle that you can check and play around.

from react-rating.

sreevarsh avatar sreevarsh commented on August 19, 2024

Hi, how to change the default symbol (circle) to star?. I installed the component and I can only see the circle rating image. Can I switch to star rating?

Thank you

from react-rating.

dreyescat avatar dreyescat commented on August 19, 2024

Hi @sreevarsh!

The easier way is to use some icon package like bootstrap or fontawesome. Then you just need to use the provided classes in your rating:

<Rating empty="glyphicon glyphicon-star-empty" full="glyphicon glyphicon-star" />

Check this jsfiddle and the demo page.

PS: Usually when you have a new question/problem/suggestion you should open a new issue instead of a comment in an unrelated issue. I mean, your question is totally unrelated to this issue at all 😉.

from react-rating.

haunguyen90 avatar haunguyen90 commented on August 19, 2024

@dreyescat thank you very much. It's wonderful

from react-rating.

sreevarsh avatar sreevarsh commented on August 19, 2024

@dreyescat https://github.com/dreyescat Sure, thank you very much. :)

On Fri, Sep 30, 2016 at 11:43 PM, dreyescat [email protected]
wrote:

Hi @sreevarsh https://github.com/sreevarsh!

The easier way is to use some icon package like bootstrap
http://getbootstrap.com/components/ or fontawesome
http://fontawesome.io/icons/. Then you just need to use the provided
classes in your rating:

Check this jsfiddle https://jsfiddle.net/dreyescat/cre6jcbh/ and the
demo http://dreyescat.github.io/react-rating/ page.

PS: Usually when you have a new question/problem/suggestion you should
open a new issue instead of a comment in an unrelated issue. I mean, your
question is totally unrelated to this issue at all 😉.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#20 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQj37Ipw9Da-J8p7-CHOxpr67x7BBEbks5qvgEGgaJpZM4KF9R6
.

from react-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.