[Vuejs]-Drilling into object sup-properties in v-data-table

0👍

You can use headers prop’s value field for that. Vuetify accepts property path here:

headers: [
        {
          text: 'Dessert (100g serving)',
          align: 'left',
          sortable: false,
          value: 'name',
        },
        { text: 'Calories', value: 'calories.value'}, <-- HERE
        { text: 'Fat', value: 'fat.value'},
        { text: 'Carb', value: 'carbs.value'},
      ],

Leave a comment