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

What if I want subItems of subItems and so on..?? #16

Open
Nayan014 opened this issue Nov 15, 2017 · 1 comment
Open

What if I want subItems of subItems and so on..?? #16

Nayan014 opened this issue Nov 15, 2017 · 1 comment

Comments

@Nayan014
Copy link

Nayan014 commented Nov 15, 2017

I want 4 level side menu

I tried to push option as mention bellow but it is not working.
also played with side-menu-content.component.html but didn't get what to do,
Can you please guide where else I have to make changes.

Thank you for your great contribution.

this.options.push({ displayName: 'Nayan', subItems: [ { iconName: 'basket', displayName: 'Sub Option 1', subItems: [ { iconName: 'basket', displayName: 'Sub Option 1', component: 'HomePage' }, { iconName: 'bookmark', displayName: 'Sub Option 2', component: 'HomePage' } ] }, { iconName: 'bookmark', displayName: 'Sub Option 2', component: 'HomePage' } ] });

@sebaferreras
Copy link
Owner

I'm afraid it won't be possible with the current implementation of the component. The entire logic of the component is based on only two levels of items/subitems, so a major refactor of the entire code would be needed in order to support more levels of items/subitems.

I'll add support for multiple levels in the future but since it's a major change and requires a lot of time, I won't be able to do it in the short time, I'm very sorry :(

I'll keep this issue open so we can add ideas/suggestions/comments here.

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

No branches or pull requests

2 participants