-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Documentation] code example of v-data-table prop filterable is not showcasing filterable #20052
Comments
I think there is no filterable props in v-data-table. I cannot find it in API docs or in code. |
There is some mention about "filterable" props in docs (packages/docs/src/pages/en/components/data-tables/data-and-display.md) but it indeed seems like its not implemented. I would was just needing such a feature. Perhaps there is a work-around with a custom filter? |
the proper prop is called |
There is no mention of search prop here: Tried the following to no avail: |
Thats because its not a part of the header props, its a there is a |
I achieved similar behavior using the filter-keys prop for v-data-table. You need to populate it with keys you want to be filterable. You can use |
@c4mbr0nn3, I am not sure I follow. Do you mind showing an example? I am currently using a custom filter where columns.name is the only column I want to filter on, but this get called for all cells which is not very nice:
|
If you have specific questions about how to use Vuetify please check out the following resources: |
@MajesticPotatoe, thanks a lot. |
Environment
Vuetify Version: 3.6.10
Vue Version: 3.4.30
Browsers: Chrome 126.0.0.0
OS: Windows 10
Steps to reproduce
https://vuetifyjs.com/en/components/data-tables/data-and-display/#filterable
https://github.com/vuetifyjs/vuetify/blob/master/packages/docs/src/examples/v-data-table/prop-filterable.vue
Expected Behavior
Expected the v-data-table to be "Nutrition"
Actual Behavior
The v-data-table is "Find a Graphics Card"
Reproduction Link
https://vuetifyjs.com/en/components/data-tables/data-and-display/#filterable
Other comments
The actual example doesnt showcase the prop filterable.
The text was updated successfully, but these errors were encountered: