How to retrieve the filtered data table items (as an array) when using a custom data table search filter

独自空忆成欢 提交于 2019-12-31 05:49:06

问题


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.

来源:https://stackoverflow.com/questions/57576512/how-to-retrieve-the-filtered-data-table-items-as-an-array-when-using-a-custom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!