amirkian007 / vue-awesome-sidebar

A Modern and Fast sidebar Menu component for vue(3x) capable with vue-router.
https://amirkian007.github.io/vasmenu/
MIT License
52 stars 14 forks source link

Request: Close all MenuItems that are expanded when clicking a MenuItem with href #11

Closed nunonux closed 1 year ago

nunonux commented 1 year ago

Hello,

I think it would be great if on clicking a MenuItem with a href, one to go to a route, all the others MenuItems with children that are expanded (showing the children), could close or compress.

amirkian007 commented 1 year ago

@nunonux Hi, thanks for using this package :)) Yes I can add an option to the package that when ever a menu item with href is clicked every expanded children in the entire sidebar or just that one menu item closes , I will add that in about 1 week and let you know... What do you mean by compress btw?

nunonux commented 1 year ago

Compress like the autonym of expanded, read it as same as close. All of them should close, and the menuItem that I clicked should be open.

amirkian007 commented 1 year ago

@nunonux Hello again , i add the option and released a new version(1.2.3) ,all you have to to is to add the closeOpenMenuOnHrefPush option to the component ! if there is anything else please let me know.