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 replace logo on navTitle Text. #47

Closed RD1989 closed 3 years ago

RD1989 commented 4 years ago

menu

somewebmedia commented 4 years ago

I'll see to implement this feature soon.

somewebmedia commented 3 years ago

One question tho, if navTitle is set as HTML element (image), what should be used as a back label on the next level when levelTitleAsBack is set to true?

glavrjk commented 3 years ago

One question tho, if navTitle is set as HTML element (image), what should be used as a back label on the next level when levelTitleAsBack is set to true?

I consider that the logo should only be shown in the main view, in the sub-sequences it should show the name of the parent, as it does currently.

somewebmedia commented 3 years ago

The name of the parent is the navTitle for the first level.

glavrjk commented 3 years ago

well you can put navTitlelike htmlor string and the rest works like currently. In other way, you know i updated the library to 6 and i had to do a rollback because all my custom css was destroyed :/

somewebmedia commented 3 years ago

I can make the back button have "Back" text if navTitle is html object.

In other way, you know i updated the library to 6 and i had to do a rollback because all my custom css was destroyed :/

Please open a ticket for that so I can explain the css changes I made in the version 6.

somewebmedia commented 3 years ago

Added this feature in the latest version.