Topic: How to close sidenav

Michael Taylor free asked 6 years ago


Hi, I'm trying to add a button to close the sidenav but can't get it to work. I've tried the following:

A duplicate of the button that opens it

<a href="#" data-activates="slide-out" class="button-collapse"><i class="far fa-times"></i></a>

as well as

$('.button-collapse').sideNav({
 closeOnClick: true
 });

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No
Tags