Topic: SideNav w/ Close Button
Andrew Ford
pro priority asked 2 years ago
My sidebar re-initializes when I add a button to close it.
<div class="logo-wrapper waves-light">
<a href="#" class="sidenav-close">
<i class="fa fa-close" aria-hidden="true"></i>
</a>
</div>
$('.sidenav-close').sideNav('hide');The 'obfuscator' becomes layered and darker.
Resolved
- User: Pro
- Premium support: No
- Technology: jQuery
- MDB Version: 4.5.10
- Device: macBook
- Browser: Opera 57.0.3098.76
- OS: Mojave
- Provided sample code: Yes
- Provided link: No
Piotr Glejzer staff commented 2 years ago
Hi,
do you need something like that, maybe?
https://mdbootstrap.com/snippets/jquery/piotr-glejzer/120704
Best,
Piotr
Andrew Ford pro priority commented 2 years ago
Thank you. That does the trick.