Topic: Selected item sidenav
thiagokaiser free asked 6 years ago
Jakub Strebeyko staff answered 6 years ago
collapsible sideNav menu
open on page load try adding .active
CSS class to <a>
element already holding .collapsible-header
CSS class.
With Best Regards,
Kuba
thiagokaiser free commented 6 years ago
Hi, Jakub. It's works just in menu, how about item menu?Jakub Strebeyko staff commented 6 years ago
Hi thiagokaiser, To have themenu
itself open on page load, it's sufficient to apply to initialize it with .click()
, like so:
// SideNav Initialization
$(".button-collapse").sideNav().click();
Best regards,
Kuba
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Jakub Strebeyko staff commented 6 years ago
Hi thiagokaiser, Thanks for reaching out. Could you perhaps describe the behavior you expect? For example would you like a sub-menu to be open on page-load or rather not for them not to close when you open another one? With Best Regards, Kubathiagokaiser free commented 6 years ago
Hi. I'd like the menu stay open after page load. It's seems what item is active.