i am working with vuetify and i need to make the serverside controlled data tables run. now i saw this piece of code in the docs right here
and apart from that i am struggeling to understand how this is working i am confiused on this very piece of code.
a object with no keys gets override by this.options
but this.options
is empty anyway, u can see in the docs.
data () {
return {
totalDesserts: 0,
desserts: [],
loading: true,
options: {}, //<--------------------- HERE
headers: [
{
text: 'Dessert (100g serving)',
align: 'start',
sortable: false,
value: 'name',
},
{ text: 'Calories', value: 'calories' },
{ text: 'Fat (g)', value: 'fat' },
{ text: 'Carbs (g)', value: 'carbs' },
{ text: 'Protein (g)', value: 'protein' },
{ text: 'Iron (%)', value: 'iron' },
],
}
},
const { sortBy, sortDesc, page, itemsPerPage } = this.options