Add-ons

The mmenu.js plugin uses add-ons to add additional behavior. These add-ons require additional options and configuration to be set. They also might have their own set of CSS variables and API methods.

<script>
    document.addEventListener(
        "DOMContentLoaded", () => {
            new Mmenu( "#menu", {
                searchfield: {
                    // searchfield options
                }
            }, {
                searchfield: {
                    // searchfield configuration
                }
            });
        }
    );
</script>

Available add-ons:

Back button Counters Iconbar Icon panels Navbars Page scroll Searchfield Section indexer Set selected Sidebar