I am trying to enhance the vuetify sidebar menu I created by adding a submenu to a specific title. Despite editing the code and data as shown below, I am unable to see any changes reflected.
Below is the code snippet:
<v-list flat class="mt-50">
<v-list-item-group v-model="selectedItem" color="black">
<v-list-item v-for="(item, i) in items" :key="i" active-class="border" class="mr-3" :ripple="false" :to="item.link" link>
<v-list-item-icon>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-icon>
<v-list-item-title v-text="item.title"></v-list-item-title>
</v-list-item>
<v-list-item v-for="child in items.child" :key="child.title">
<v-list-item-title :to="child.route">{{ child.title }}</v-list-item-title>
</v-list-item>
</v-list-item-group>
</v-list>
The data structure being utilized:
selectedItem: 0,
items: [
{ icon: 'mdi-account-key', title: 'Users', link: '/dashboard/test' },
{ icon: 'mdi-shopping', title: 'tests', link: '/dashboard/test2' },
{ icon: 'mdi-marker', title: 'tests2', link: '/dashboard/test3' },
childs: [
{ title: 'basic', link: '/dashboard/table/basic' },
{ title: 'data', link: '/dashboard/table/data' },
{ title: 'responsive', link: '/dashboard/table/responsive' },
{ title: 'editable', link: '/dashboard/table/editable' },
{ title: 'filter', link: '/dashboard/table/filter' },
{ title: 'pagination', link: '/dashboard/table/pagination' },
{ title: 'search', link: '/dashboard/table/search' },
{ title: 'sort', link: '/dashboard/table/sort' },
{ title: 'selection', link: '/dashboard/table/selection' },
{ title: 'tree', link: '/dashboard/table/tree' },
{ title: 'custom', link: '/dashboard/table/custom' },
],