We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vuetify: 1.1.4 Vue: 2.5.16 Browsers: Chrome Version 67.0.3396.99 (Official Build) (64-bit) OS: Mac OS 10.13.5
items
{ value: false, '.name': 'Frozen Yogurt', calories: 159, fat: 6.0, carbs: 24, protein: 4.0, iron: '1%' }
v-data-table
.name
Can search by .name attribute
Can't search
https://codepen.io/ittus/pen/wxBLgV (Can't search by .name property)
object['.name']
.key
computed: { formatItems: function() { return this.items.map(item => { return { ...item, key: item['.key'] } }) } }
The text was updated successfully, but these errors were encountered:
I think we can add by passing fallback parameter to
fallback
vuetify/src/components/VDataTable/VDataTable.js
Line 50 in f109015
return items.filter(item => props.some(prop => filter(getObjectValueByPath(item, prop, item[prop]), search)))
Sorry, something went wrong.
#1823, not sure what those "breaking issues" would be though.
17a4dd8
Add fallback when get object by path (#5090)
dd7f73b
Fixes #4586
Successfully merging a pull request may close this issue.
Versions and Environment
Vuetify: 1.1.4
Vue: 2.5.16
Browsers: Chrome Version 67.0.3396.99 (Official Build) (64-bit)
OS: Mac OS 10.13.5
Steps to reproduce
items
which has dot in property name.For example:
items
array tov-data-table
. Can't search by.name
attributeExpected Behavior
Can search by
.name
attributeActual Behavior
Can't search
Reproduction Link
https://codepen.io/ittus/pen/wxBLgV
(Can't search by
.name
property)Additional Comments:
object['.name']
value.key
attribute is exist.My workaround is using computed attribute:
The text was updated successfully, but these errors were encountered: