Skip to content
New issue

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

multilevel menu #60

Open
kodmanyagha opened this issue Jun 12, 2020 · 2 comments
Open

multilevel menu #60

kodmanyagha opened this issue Jun 12, 2020 · 2 comments

Comments

@kodmanyagha
Copy link

Is it possible that create multilevel menu in this project?

@ianfirdaus31
Copy link

ianfirdaus31 commented Sep 14, 2020

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
Copy link

i tried doing this and found two things

  • the url the submenu tries to go to includes a /undefined/ part in the path which is weird
  • even though i defined an icon, the submenu still displays the first characters of each subitem title words as shown in the example above. is this by design or is there a way to display an icon?

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',
            },
          ],
        },
      ],
    }),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants