No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to have a complete list of half-stars in Rating (1,1.5,2,2.5, etc)

    Framework
    2
    5
    181
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Suo last edited by Suo

      Hi,

      I wish to have 5 stars using Rating so that users can select a value between 0.5 and 5 as either of the following: 0.5 - 1 - 1.5 - 2 - 2.5 - 3 - 3.5 - 4 - 4.5 - 5. I don’t understand how to do it and the only example in the doc shows one icon allowing half-star only when you define the model value as 3.5 (so only the 4th star is split while all the other stars are full and you cannot select a 0.5 value).

      Is there a way to accomplish this and if yes, how? Thanks!

      1 Reply Last reply Reply Quote 0
      • Henrique
        Henrique last edited by

        I made a example https://codepen.io/fal-pasa/pen/mdRPeqO

        1 Reply Last reply Reply Quote 1
        • S
          Suo last edited by

          Thanks for that Henrique - it’s a bit confusing for end-users. Would you have an idea how to do it so the half-stars show while you are sliding left to right (left to center of star = show half-star, center to right = show full-star)? Thanks!

          1 Reply Last reply Reply Quote 0
          • Henrique
            Henrique last edited by

            I don’t have an idea how to do half-stars on hover option.

            1 Reply Last reply Reply Quote 0
            • S
              Suo last edited by

              Np - Thanks Henrique!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post