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

Singular / Plural postfix #782

Open
mugnap opened this issue Apr 2, 2023 · 0 comments
Open

Singular / Plural postfix #782

mugnap opened this issue Apr 2, 2023 · 0 comments

Comments

@mugnap
Copy link

mugnap commented Apr 2, 2023

Hello,

I'd like to add a postfix but it needs to be different for singular or plural. In my slider I have a range from 1 to 10. If the selected value is 1, then the postfix should be " item", otherwise " items".

I cannot find a way to do that. I tried to use the onChange event and '.update' method to update the postfix property according to its value (data.from), but it seems that when I use the '.update' method, the slider 'looses' focus, so I cannot drag the slider more than 1 step at a time.

How can I do that?
Thanks!

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

1 participant