How to set className of selected(or opened) menu item
garbin opened this issue · comments
In my project, I'm using this library for admin sidebar menu, so I should show user which item he clicked(opened).
fortunately, the theme what I'm using has a online demo, If my describe is difficult to understand. you can checkout it http://modularcode.io/modular-admin-html/ . I think you'll get the point easily
Shortly, you said, higlighting active menu. I am already working on this 👍
Soon, I will publish a major version which written from scratch. Because current structure is simple and can't afford complicated controls like automatically pre-opened sub menus which consists active link when page is loaded. Or externally manuel activating a menu via ref methods for Single Page Applications.
Hello @garbin
Now v1.0.0-alpha.1
is available and you are able to control active links and customizing styles of course.
Here README parts may help you;
- Properties
- Active Link Selectors
- Using Your Own Class Names (Added
classNameLinkActive
prop) - Demo Page
I will be waiting for your feedback after trying latest release 😊
@alpertuna Wow! Great job! I will give you feedback ASAP.