PHPackages                             mediarox/module-js-hc-offcanvas-nav - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediarox/module-js-hc-offcanvas-nav

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

mediarox/module-js-hc-offcanvas-nav
===================================

Magento 2 Module for HC Off-canvas Nav

0.0.6(4y ago)2181MITPHP

Since Feb 14Pushed 4y agoCompare

[ Source](https://github.com/mediarox/module-js-hc-offcanvas-nav)[ Packagist](https://packagist.org/packages/mediarox/module-js-hc-offcanvas-nav)[ Docs](https://somewebmedia.github.io/hc-offcanvas-nav/)[ RSS](/packages/mediarox-module-js-hc-offcanvas-nav/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (1)

Magento 2 module for hc-offcanvas-nav (6.1.4)
=============================================

[](#magento-2-module-for-hc-offcanvas-nav-614)

**This repo is just an integration of original js-library including css into Magento 2.**

> JavaScript library for creating off-canvas multi-level navigations, using ARIA. Dependency free, but also works as a jQuery plugin.

See original repository for more information:

### Installation

[](#installation)

```
cd
composer require mediarox/module-js-hc-offcanvas-nav
bin/magento setup:upgrade
```

### Usage example

[](#usage-example)

```
?>

    require([
        'jquery',
        'hcOffcanvasNav'
    ], function ($, hcOffcanvasNav) {
        // create global instance. info: the call as jQuery plugin ($(selector).hcOffcanvasNav) does not work reliably.
        window.topMenuNavigation = new hcOffcanvasNav('nav.navigation', {
            disableAt: 768,
            labelBack: '
