Back button introduction

To navigate through the menu by pressing the browser back button, include the "backButton" add-on .js file and use the backButton options.

<head>
   <script src="path/to/jquery.js"></script>
   <script src="path/to/jquery.mmenu.js"></script>
   <script src="path/to/jquery.mmenu.backbutton.js"></script>
   <link href="path/to/jquery.mmenu.css" rel="stylesheet" />
   <script>
      $(document).ready(function() {
         $("#my-menu").mmenu({
            backButton: {
               // backButton options
            }
         });
      });
   </script>

Options for the "backButton" add-on

Option Default value Datatype Description
backButton A map of options or true for backButton.close.
{
close false Boolean Whether or not to close a panel (or the menu) when pressing the browser back button.
}

Configuration for the "backButton" add-on

The "backButton" add-on has no configuration options.

API methods for the "backButton" add-on

The "backButton" add-on has no API methods.

CSS variables for the "backButton" add-on

The "backButton" add-on has no CSS variables.

SCSS variables for the "backButton" add-on

The "backButton" add-on has no SCSS variables.

Next add-on:
Columns