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

Accessing filtered rows from parent #28

Open
bobby-nicholas opened this issue Jul 6, 2017 · 0 comments
Open

Accessing filtered rows from parent #28

bobby-nicholas opened this issue Jul 6, 2017 · 0 comments

Comments

@bobby-nicholas
Copy link

Hey @andrewcourtice, thanks for all the nice work with these components.

I needed to access the currently filtered rows from the datatable component in my in-page vue app. To do this, I had the computed function rows() emit an event ('rowchange') with the rows array as its parameter. When I tested this with your example application in dev (having a function handle the v-on:rowchange event) this worked nicely. However, when I compiled the code and tried this in my app, the event does not seem to be firing.

I'm still pretty new to vue, so maybe there is something about event handling I am missing? Is there anything special I have to account for when using the component with an in-page vue instance, versus a vue file? If you don't have an answer off hand, do you have any suggestions for another way to expose the filtered row data to the parent?

Thanks again!

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

1 participant