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 to prevent update of a slider if value is too big. #206

Open
kotfilemon opened this issue Mar 4, 2019 · 0 comments
Open

How to prevent update of a slider if value is too big. #206

kotfilemon opened this issue Mar 4, 2019 · 0 comments

Comments

@kotfilemon
Copy link

hello,

my case requires me to have slider with set min and max shown always (let say from 0 to 5) but sometimes, affter custom validation I should never allow user to set value bigger than, let say 3.

what I am looking for is to hook up into update/set method, get the new value, validate it somehow (this part is easy, I have done it) and then, if it passes validation set it, if not, reject new value and show the user old value (if, it was set).

any idea?

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