-
-
Notifications
You must be signed in to change notification settings - Fork 130
Add ability to get current filtered items in CDataTable #58
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
Comments
Hi! Thank you for this idea! Btw. 'currentItems' are not filtered items, but visible items. You probably meant 'tableFiltered' or 'sortedItems' (filtered items after applied sorting). |
You are right! Was about to edit the issue since I saw that One of the use cases would be to allow "download" the filtered items to a xlsx/csv file. |
Very useful use-case! We will add this feature :) |
Awesome! |
Feature introduced in 3.0.0-beta.11, commit: ea92ae7 |
After looking at the docs CDataTable does not have an event that indicates what are the current filtered items after one applies a filter to a specific column or searched in a table.
Hence, after looking at the code I saw that this can be easily achieved by emitting an event after
coreui-vue/src/components/table/CDataTable.vue
Line 455 in 2ced24b
coreui-vue/src/components/table/CDataTable.vue
Line 463 in 2ced24b
The name of the new event is mere indicative.
The text was updated successfully, but these errors were encountered: