How to get filtered items from a v-data-table? #18762
Replies: 11 comments 5 replies
-
Hi, @ottopaulsen |
Beta Was this translation helpful? Give feedback.
-
If you want to update the performance of your application, you can add async manipulation for delay. |
Beta Was this translation helpful? Give feedback.
-
I have a text input and I am usin it for the standard search attribute on the table. I just want to know exactly what rows that are visible when som rows are filtered by search. |
Beta Was this translation helpful? Give feedback.
-
Do you want to know which columns of the table are filtered by search value? |
Beta Was this translation helpful? Give feedback.
-
Please refer following url. When search is changed, v-data-table is filtered automatically. |
Beta Was this translation helpful? Give feedback.
-
If so, you can try another way. You don't need to use |
Beta Was this translation helpful? Give feedback.
-
Thank you for trying. I have found a workaround that is good enough for me, but I think it is sad that this feature is missing. |
Beta Was this translation helpful? Give feedback.
-
Sounds good, could you share your result for me? |
Beta Was this translation helpful? Give feedback.
-
I found that I only need search on one column, so I use |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks for your sharing. |
Beta Was this translation helpful? Give feedback.
-
There is a prop available for v-data-table in vue3 named @update:current-items that gives the current showing items in the table. |
Beta Was this translation helpful? Give feedback.
-
When I use the search property on a v-data-table, is there any good way to get the filtered items?
(I don't think is it a good solution to filter the JSON values of the items using the Array.filter function.)
Beta Was this translation helpful? Give feedback.
All reactions