Blueprint-SlidePushMenus icon indicating copy to clipboard operation
Blueprint-SlidePushMenus copied to clipboard

Close Menu if click menu item

Open aBuder opened this issue 11 years ago • 1 comments

At first what is classie.js is it like jquery? or do you have develop it. is it possible to hide the menu if an menu item clicked?

aBuder avatar Dec 11 '13 20:12 aBuder

Classie provides a series of class helper functions, like checking for a class, adding a class, removing a class, or toggling a class. Of course, this can all be done using JavaScript, but Classie just makes it a little bit easier. https://github.com/desandro/classie

If you'd like to hide the menu on a menu item click, simply fire off the several Classie toggles upon clicking a menu item, but wouldn't clicking a menu item take you to another page anyways, thus closing the menu? Unless you're doing some AJAXy stuff or linking to an anchor or something.

trinadin avatar Jul 17 '14 18:07 trinadin