0

There is nice documentation of vuetify version 2 about how override the default data table search filtering used with search prop by supplying a function to the custom-filter prop here.

Everything understood / it works fine.

But how can I retrieve the filtered data table items (as an array) within the custom search filter method in vuetify version 2?

methods: {
      filterOnlyCapsText (value, search, item) {
        ...
        //want to do sth like this here
        this.filteredTableData = items;
        ...

      },

Here is the complete pen from the vuetify documentation example.

2
  • I found this answer, but doesn't seem to be valid anymore it suggests watch: { '$refs.someTableRefName.filteredItems': function (value) { console.log(value); } } as how to retrieve the filtered data table items
    – timitalia
    Aug 21, 2019 at 10:42
  • I'm having the same problem. Did you find a solution? Dec 4, 2019 at 14:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.