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

Support for boolean operators in Multiple Select list box #1059

Closed
IanMayo opened this issue Feb 26, 2013 · 4 comments
Closed

Support for boolean operators in Multiple Select list box #1059

IanMayo opened this issue Feb 26, 2013 · 4 comments

Comments

@IanMayo
Copy link

IanMayo commented Feb 26, 2013

I believe it's a fairly common usage to use Chosen to build up fields for a faceted search (in the countries example this would be selecting items in the control to trigger a "search for results in Brazil and Algeria").

It would be a great step forward to include a boolean +/- UI toggle element at the left-hand side of the widget. So, after adding Brazil and Algeria items to the multi-select, the user could click on the + icon at the left-hand of the Algeria widget. The '+' would turn into '-', and the app would process this as "search for results in Brazil but not Algeria".

@pfiller
Copy link
Contributor

pfiller commented Apr 16, 2013

I see a lot of complexity in this kind of request and I'm not sure what the gain is. If people want to add and remove Brazil and Algeria, the multiple select option makes this fairly straightforward. What is the use case for searching "brazil -algeria"?

@pfiller pfiller closed this as completed Apr 16, 2013
@IanMayo
Copy link
Author

IanMayo commented Apr 17, 2013

Hi there @pfiller , sorrry I didn't get chance to discuss the use case before you closed it.

An example of the use case would be on a shopping site: I'm interested in the cheapest wifi-only tablets, so from the "Features" drop down I select "Colour", "Wifi", and "-Cellular data". Obviously, if I hadn't selected -Cellular Data I wouldn't just get the wifi-only tablets.

When searching for holidays, I may wish to enter "Watersports", "Beach", "Pool", "Warm Climate", -"Family" if I'm looking for an adults-only summer resort (not that I'll be doing that for few years, mind you...).

My example was poor - I gave an example of mutually exclusive choices. The real example would be where an item can relate to multiple items in the selection.

@pfiller
Copy link
Contributor

pfiller commented Apr 17, 2013

Thanks for following up @IanMayo. While that sounds like useful functionality, it does not sound like something that belongs in the main Chosen repo. If you fork it and build your own, let me know what you come up with!

@IanMayo
Copy link
Author

IanMayo commented Apr 17, 2013

Hi there @pfiller , I'm a GWT developer, which I'm afraid makes me a consumer of JS libraries rather than a developer. But, if I do chance across someone with the correct skillset I'll happily 'sponsor' a fork.

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

2 participants