ember-mobile-menu icon indicating copy to clipboard operation
ember-mobile-menu copied to clipboard

Keep Open in Desktop Layout but toggle in Mobile Layout?

Open kevintraver opened this issue 3 years ago • 1 comments

Is there a way to keep the menu visible and locked in desktop layout, but then toggle in mobile layout?

kevintraver avatar Jul 19 '22 21:07 kevintraver

You have some control using the isOpen argument which you could combine with some responsive logic in a getter to open it by default on desktop. Locking the menu is currently missing. This would be a nice addition in combination with adding an example to the documentation showcasing how to do this.

Some inspiration can also be taken from empress-blog-hummingbird-template where I customized it to show a different menu on desktop using ember-responsive. See: https://github.com/nickschot/empress-blog-hummingbird-template/blob/master/app/templates/application.hbs

nickschot avatar Jul 20 '22 17:07 nickschot