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

[Request] Allow empty values #143

Closed
neoascetic opened this issue Nov 14, 2013 · 6 comments
Closed

[Request] Allow empty values #143

neoascetic opened this issue Nov 14, 2013 · 6 comments

Comments

@neoascetic
Copy link

Example use case: slider for price range selection for a filter in an online shop. When handles are set to their initial positions (most left and most right, respectively), "value" attribute of each corresponding form field must be empty. This means that user do not want to filter products by their price at all.

@leongersen
Copy link
Owner

Interesting idea. How would you design the API for this?

@neoascetic
Copy link
Author

I realized that this feature may be useful not only with serialization, so I've changed the title.
We may provide to slider user a one more setting, called "emptyOnEdges" or something like that.

@leongersen
Copy link
Owner

In noUiSlider 4.3.0, you can use the new options in serialization to do this. I've written up an example, which you can view and edit here. Is this something like you had in mind?

@neoascetic
Copy link
Author

Yeah, using callback for this is great. Thanks!

@1234ru
Copy link

1234ru commented May 22, 2017

I have the same use case as the topic starter did.
Is the solution you provided in the fiddle still up to date?

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants