-
Notifications
You must be signed in to change notification settings - Fork 404
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
Easy access to the filtered rows #778
Comments
Hi, @xaksis I am still on that problem, and I'd like to avoid a heavy DOM treatment to find out the filtered data of my datatable... Does the plugin give a workout for this, please ? Thomas. |
hey @thomas-fortin, can you create a jsfiddble to show where you're trying to console.log(this.$refs.myTable). The $refs variable is provided by vue and should be available to access filtered rows if you've actually put a ref on the table component. Without looking at the code, it'll be tough to guess as to why you aren't able to access things in your $refs |
Hey, Thanks for your answer, I'll try to make a JSFiddle as soon as possible. Another question is : Is this |
The code for this is pretty straight forward. If you look at Table.vue:
So in your case, you'd need |
Thanks for your answers ! I'll retry this and : or I'll come back to you with a JSFiddle, or close this if it's resolved :) |
You got it, @thomas-fortin. Let me know how it goes. |
I have restarted everything from scratch and it is working now. Sorry for the inconvenience, and thanks for your help. |
In my case,
|
I'm using 2.21.8. For now to make my program work I just add {rows: filteredRows} to the emit. |
Issue Type
Specs
What version are you using?
v2.21.1
Question
Hi,
I am using
vue-good-table
in version2.21.1
(the latest right now), and I need to export my filtered rows (with column filters and a possible global search) but I can't access it.I have seen in some issues from 2018 that there used to have a variable to handle this, the
.filteredRows
. I have tried this solution but it seems that it does not exist anymore, here is a code example :Then in my
methods
, if I try to access tothis.$refs.myTable.filteredRows
, I have anundefined
when I have no filter, or if I have a global search on.When I log my table like
console.log(this.$refs.myTable);
, I have no sign of this variable.So, my question is : Is there a (new) way to easily access to the filtered rows of a
vue-good-table
, please ?The text was updated successfully, but these errors were encountered: