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

How to get the current (pageItems) items (after sort, filter & search) #211

Closed
balajidharma opened this issue Jan 27, 2023 · 4 comments
Closed

Comments

@balajidharma
Copy link
Contributor

balajidharma commented Jan 27, 2023

Is there any way to get the current result items? Hope the update-filter only works on the filter. Can we create a similar one for update-items

@balajidharma balajidharma changed the title How to get the current items (after sort, filter How to get the current items (after sort, filter & search) Jan 27, 2023
@balajidharma balajidharma changed the title How to get the current items (after sort, filter & search) How to get the current (pageItems) items (after sort, filter & search) Jan 27, 2023
@HC200ok
Copy link
Owner

HC200ok commented Jan 29, 2023

please update to the latest version 1.5.28, then you can use updatePageItems event like:

<DataTable
  :headers="headers"
  :items="items"
  @update-page-items="updateItems"
/>

<script>
const updateItems = (items) => {
  console.log(JSON.stringify(items));
};
</script>

@balajidharma
Copy link
Contributor Author

balajidharma commented Jan 30, 2023

@HC200ok Thank you for adding the feature. It works with 1.5.28 but not working with the latest release 1.5.29 (https://codesandbox.io/s/red-currying-54g2dx?file=/package.json)

I have added an event for updateTotalItems on #213

Need to fix the build file issue. Maybe these changes make the issue? (b5e53bd)

@HC200ok
Copy link
Owner

HC200ok commented Jan 31, 2023

Please update to the latest version 1.5.30

@balajidharma
Copy link
Contributor Author

@HC200ok Thank you... it working fine.

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