Topic: SideNav w/ Close Button
                  
                  Andrew Ford
                  priority
                  asked 7 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
              Resolved
Specification of the issue
              - ForumUser: Priority
 - Premium support: Yes
 - Technology: MDB 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 7 years ago
Hi,
do you need something like that, maybe?
https://mdbootstrap.com/snippets/jquery/piotr-glejzer/120704
Best,
Piotr
Andrew Ford priority commented 6 years ago
Thank you. That does the trick.