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

custom_func and multiselect filter #99

Closed
Dravenrip opened this issue Oct 27, 2014 · 4 comments
Closed

custom_func and multiselect filter #99

Dravenrip opened this issue Oct 27, 2014 · 4 comments

Comments

@Dravenrip
Copy link

Hi everybody,

This, is what i want to do :

i'm trying to filter a column of my datables Table. This column contain some kind of tags/keywords.
I want that we can select 1 or more tag in the header, and the table display only lines that match with ALL selected items.

For the filtering process i used yadcf plugin with Select2 for the multiselect input, but it seems to be impossible.

The custom_func filter seems to be the right way to get what i want, but for the moment it only allow to a simple select input.
My first problem is to upgrade that point and using multiselect in a custom func.

I don't know how to do that :'(

here is my code :
http://codepen.io/Dravenrip/pen/hpLyv

Thanks a lot for your help !

vedmack added a commit that referenced this issue Nov 8, 2014
Note that it support integration with Chosen / Select2 plugins

#99
@vedmack
Copy link
Owner

vedmack commented Nov 8, 2014

Hi,
Added new filter type : multi_select_custom_func
Note:

  1. When using multi_select_custom_func as filter_type filterVal (of your custom function) will hold an array of selected values from the multi select element
  2. It support integration with Chosen / Select2 plugins

@vedmack vedmack closed this as completed Nov 8, 2014
@Dravenrip
Copy link
Author

Excellent !
Thanks a lot, it makes exactly what i want.

juste one more thing : my reset button doesn't work now as you can see : http://codepen.io/Dravenrip/pen/hpLyv

could it be an issue ... or just a problem with my code?

Thanks again !

@vedmack
Copy link
Owner

vedmack commented Nov 12, 2014

My bad, forgot to add support for this new filter type to the exResetAllFilters function, please open a new issue for that one...

@Dravenrip
Copy link
Author

ok no problem.

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