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

Filter in column A based on data in column B #179

Closed
bdunsmuir opened this issue Mar 27, 2015 · 3 comments
Closed

Filter in column A based on data in column B #179

bdunsmuir opened this issue Mar 27, 2015 · 3 comments

Comments

@bdunsmuir
Copy link

I'd like to be able to filter by a value in column A, but only if the value in column B matches a specific value.

Example.
Column A Column B
Hold 1

I want to filter for "Hold" but only if Column B has a value of 1

@vedmack
Copy link
Owner

vedmack commented Mar 27, 2015

It will be possible only for custom_func or multi_select_custom_func filter types, any objections? it will be sent as argument to the custom_func function.

@bdunsmuir
Copy link
Author

Sounds great to me, I will be using it with multi_select_custom_func

vedmack added a commit that referenced this issue Mar 28, 2015
filter in column  based on data in other column/s

#178
#179
@vedmack
Copy link
Owner

vedmack commented Mar 28, 2015

You can use the third parameter that yadcf will pass to your custom function, read the updated docs of custom_func

Let me know if you think that those values that will be added via the data attribute should appear on top of the select values (and not sorted with them)

@vedmack vedmack closed this as completed Mar 28, 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