Forums › Forums › Search & Filter Pro › Filtering between Minimum and Maximum Values
Tagged: filter, Minimum and Maximum Values, post meta, range slider
- This topic has 33 replies, 3 voices, and was last updated 7 years, 10 months ago by Anonymous.
-
Ross Moderator(Private) January 11, 2017 at 12:26 am #81256
Hi Jeykumar
I had a look and there is no issue with the way “input overlaps” works. Its supposed to work like that.. if there is any overlap at all between the two ranges (input & meta) then its considered an overlap, and a match will occur on the posts.
I tried to explain with an image – this shows all occasions where input IS overlapping, so would it would return the posts:
I think what you are trying to do using “input overlap” will not work.
I think your original idea of updating both handles when one of them moves is the only option (and choosing compare mode
input within post meta
.. S&F wasn’t designed to have a single handle…I will put this on the feature requests list.
To point you in the right direction… you already know how to select the noUiSlider from our previous post:
var slider = jQuery('.sf-field-post-meta-_price .meta-slider')[0];
so you have to detect when the value of
slider
is changed and then update the other handle automatically – I think you want theslide
orchange
event.. this may help:https://refreshless.com/nouislider/events-callbacks/
Hope that clears things up a little bit.
Thanks
Ross Moderator(Private) January 17, 2017 at 6:08 pm #83186Hi Jeykumar
I touched on some of the JS that will be needed, but what you require is a chunk of custom work doing to get this working the way you want – I’m afraid this is out of scope of support as it would fall under custom development.
As you want to move one handle at the same time as the other, it might be worth asking on the noUiSlider github / forums.
Hope that helps and you get it working!
Best
-
AuthorPosts