somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
335 stars 82 forks source link

How to make it expanded by default ? #10

Closed nurbeknurjanov closed 4 years ago

nurbeknurjanov commented 5 years ago

I mean, when I open some menu, clicked, page is refreshed, then go back to menu. It opens from scratch, from root. Exactly I would like to have opened root, opened some level, where the link was clicked, whenever page is refreshed or not. How ?

somewebmedia commented 5 years ago

Good question! I'll have to address that in a future release.

nafg commented 5 years ago

:+1:

vahidalvandi commented 5 years ago

good feature

kolor commented 5 years ago

That would be an amazing feature for navigation - Active menu/ or pre expanded! Great work by the way! Really appreciate the work you put in!

emage commented 5 years ago

Waiting on this feature as well - open to the currently active category - not starting the drill down all over again.

somewebmedia commented 4 years ago

Hello everybody, that days is finally here! The latest version of the plugin brings you the desired feature.

New options: expanded, closeOpenLevels New data attribute: data-nav-active

Check the repo readme for details on how to use them.

Cheers.