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

Sidebar #19

Open
arankar opened this issue Mar 14, 2021 · 2 comments
Open

Sidebar #19

arankar opened this issue Mar 14, 2021 · 2 comments

Comments

@arankar
Copy link

arankar commented Mar 14, 2021

  1. menuItemIsAvailable не используется
  2. как создать submenu правильно?
@Yurich84
Copy link
Owner

  1. Да, menuItemIsAvailable, на этом этапе не надо, но если появится боллее сложная логика отображения пунктов меню, то придеться ее выносить в этот метод.
  2. Что не так с субменю? Я не смотрел как оно работает, может надо донастроить.

@arankar
Copy link
Author

arankar commented Mar 15, 2021

если можно подскажите как правильно организовать submenu? Попробовал добавить вот так

export const routes = [
    {
        path: '/users',
        name: 'Users',
        children: [
            {
                path: '/users-all',
                name: 'Users',
                component: page('UserList'),
            },
            {
                path: '/users/:id',
                name: 'Show User',
                component: page('UserView'),
                hidden: true
            }
        ]
    },    
]

не получается

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

2 participants