samedi 29 juillet 2017

EmberJS menu visibility based off of width

So I am trying to figure out a problem that I am having with my menu in mobile vs desktop. So I created a button that can toggle the visibility of the menu, but the behavior of the menu can also change based off the size of the browser window.

While in desktop the menu should be visible While in mobile the menu should be hidden

Here is a link to some sample code of what I have. If you load it up with the window wide enough, the menu will be displayed. Click the button it hides it, click it again and it shows it.

http://ift.tt/2va3c3j




Aucun commentaire:

Enregistrer un commentaire