creativetimofficial / vuetify-material-dashboard

Vuetify Material Dashboard - Open Source Material Design Admin by Creative Tim
https://www.creative-tim.com/product/vuetify-material-dashboard
MIT License
1.3k stars 925 forks source link

multilevel menu #60

Open kodmanyagha opened 4 years ago

kodmanyagha commented 4 years ago

Is it possible that create multilevel menu in this project?

ianfirdaus31 commented 3 years ago

Sure, you may edit on Drawer.vue then within items add children. For example multilevel on user option: { icon: 'mdi-account', title: 'user', children: [ { title: 'Add New', to: '/pages/user', }, { title: 'Show All', to: '', children: [ { title: 'Removed Users', to: '' } ] } ], },

image

kirk-quinbar commented 3 years ago

i tried doing this and found two things

this is an example of how i have the data setup:

data: () => ({
      items: [
        {
          icon: 'mdi-view-dashboard',
          title: 'dashboard',
          to: '/',
        },
        {
          title: 'schema-builder',
          icon: 'mdi-clipboard-outline',
          to: '/schema-builder',
        },
        {
          title: 'client-data-setup',
          icon: 'mdi-account-cog-outline',
          children: [
            {
              title: 'clientname-setup',
              icon: 'mdi-account-details-outline',
              to: '/clientname-setup',
            },
          ],
        },
      ],
    }),