somewebmedia / hc-offcanvas-nav

JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
https://somewebmedia.github.io/hc-offcanvas-nav/
MIT License
336 stars 82 forks source link

How to add html object to navTitle ? #76

Closed Parvaz19 closed 2 years ago

Parvaz19 commented 2 years ago

I try to add html to nav Title like:

$('#main-nav').hcOffcanvasNav({
           ....
           ....
            navTitle: '<div class='text-bold'>My Website</div>',
            });

but it's not work. how do that?

thanks alot,

somewebmedia commented 2 years ago

You need to pass an html object. Take a look here: https://github.com/somewebmedia/hc-offcanvas-nav/issues/67