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

filtering with both functions and values #534

Closed
lorenzogatti opened this issue Mar 7, 2014 · 2 comments
Closed

filtering with both functions and values #534

lorenzogatti opened this issue Mar 7, 2014 · 2 comments

Comments

@lorenzogatti
Copy link

I have a column that should be filtered with a SELECT combining the actually occurring values and a few functions representing logical groups of related values (which are interesting even if no rows match).

But there is no way to specify both for the same column: the content of filter_functions (http://mottie.github.io/tablesorter/docs/example-widget-filter-custom.html) is completely different.

Maybe there could be a slightly different API to build a SELECT without immediately committing to a certain type of entries and later add one or more SELECT entries (adding functions and adding "all current values" would become similar and compatible operations).

SELECT entries could also be flagged as permanent (the current behaviour for functions) or automatically hidden if they have no match (the current behaviour for autogenerated entries) regardless of type.

@Mottie
Copy link
Owner

Mottie commented Mar 7, 2014

Hi @lorenzogatti!

That's a pretty extensive request. I wonder if using select2 with auto tokenization would work better for you?

@Mottie
Copy link
Owner

Mottie commented Apr 21, 2014

select2 filter formatter code added in v2.16. Other than that, I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue this discussion.

Edit: Also a new filter_selectSource option was added which allows setting custom filter select options.

@Mottie Mottie closed this as completed Apr 21, 2014
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