Skip to content
New issue

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

How a user give half star rating #38

Open
thomaspessato opened this issue Mar 22, 2018 · 5 comments
Open

How a user give half star rating #38

thomaspessato opened this issue Mar 22, 2018 · 5 comments

Comments

@thomaspessato
Copy link

First of all, let me say thank you for this very nice component!

Is there a way I can tap on a star and, according to the place, gives a half star rating?

In my case, I want to have a 1-10 range, but only 5 stars...

Thanks for your attention!

@andrucz
Copy link
Owner

andrucz commented Mar 23, 2018

Hey, @thomaspessato. I am glad to hear that this component was helpful.

Unfortunately, there is no way to know exactly where the user clicked. The only event fired is related to the selected value. There is actually a way you can make the component select a half star, though.

Take a look at #36 and its comments. It is possible to listen to change events and when the user clicks on the same star, you can subtract 0.5 from the ngModel value.

@thomaspessato
Copy link
Author

Thanks for clarifying! I'll take a look at #36, thanks!

@andrucz
Copy link
Owner

andrucz commented Mar 23, 2018

I will keep this issue open and see if it is possible to fire a more detailed event, including some information about click position, etc.

@andrucz andrucz reopened this Mar 23, 2018
@thomaspessato
Copy link
Author

thomaspessato commented Mar 23, 2018

Maybe ionic gestures could be useful here

@dfliess
Copy link

dfliess commented Jul 13, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants