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

User selected columns to filter #747

Closed
Mottie opened this issue Oct 21, 2014 · 3 comments
Closed

User selected columns to filter #747

Mottie opened this issue Oct 21, 2014 · 3 comments

Comments

@Mottie
Copy link
Owner

Mottie commented Oct 21, 2014

I need some ideas, or maybe some best practices on how I should implement this feature.

Basically, if there is an external filter which is set to data-column="all" (demo), I want the user to be able to specify which column(s) they want to search.

These are some ideas on how a user could specify the desired column when searching for "abc" in the first column AND "10" in the second:

  • 0:abc && 1:10
  • AlphaNumeric:abc && Numeric:10 (column titles will likely be case insensitive)
  • {AlphaNumeric}abc && {Numeric}10
  • abc{0} && 10{1}
  • 0+abc && 1+10 (trying to use selectors that don't match any of the filter flags; so don't use = or -)

Currently if you search for "abc && 10" in the demo, you get 3 results, one of which includes "ABC 10" in the first column with "87" in the second.

@MaksimProgr
Copy link
Contributor

You haven't implemented yet. If you are not working on this feature right now, can I try to implement this?

@Mottie
Copy link
Owner Author

Mottie commented Feb 9, 2015

Hi @MaksimProgr!

Sure, I just haven't figured out the best way to implement it.

@Mottie
Copy link
Owner Author

Mottie commented Feb 21, 2015

Completed thanks to @MaksimProgr!

See a working demo here.

@Mottie Mottie closed this as completed Feb 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants