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 by every column #4

Open
mehdirajabi59 opened this issue Apr 22, 2017 · 5 comments
Open

filter by every column #4

mehdirajabi59 opened this issue Apr 22, 2017 · 5 comments

Comments

@mehdirajabi59
Copy link

Hi
I want have input search for every column but this plugin has a input search
I would like multi filter
Can i do that ?

@ratiw
Copy link
Owner

ratiw commented Apr 22, 2017

If your backend api supports it, you can.

@mehdirajabi59
Copy link
Author

my backend api supports it, can you get me sample code about multi filter ?

@ratiw
Copy link
Owner

ratiw commented Apr 22, 2017

@engmmrj Normally, you would use append-params prop of Vuetable to specify the filter parameter(s). When there is a need to request the data, Vuetable will include those params in the query string of the request that send to your backend api. This line is where you use append-params. These lines are where it gets applied.

How would your backend api accept filter?

@mehdirajabi59
Copy link
Author

mehdirajabi59 commented Apr 22, 2017

Is below code right?
this.moreParams = { name: name, last_name : last_name }

I have written a trait that filters some columns and sorts some columns, I only use that class in my model.

Can I have image column or only text column?

@ratiw
Copy link
Owner

ratiw commented Apr 25, 2017

@engmmrj Focus on your API backend first, we can usually make Vuetable adjust to that once we know what the API endpoint expects from the request.

First please explain how to request a filtered result from your API. What is/are the parameter(s) it expects?

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