Mobile Mode
The Foundation template is fully-responsive. This variable is how.
var - mobile-mode?
If a webpage's width exceeds the mobile breakpoint, it sets a variable 'mobile mode?' to "no". Otherwise, the variable changes to "yes".
This variable informs different elements on the page how to adjust according to the screen size.

ICYMI: var - mobile mode references the App Settings variable instead of performing an additional Search For operation.
Basic use case:
var - mobile mode? is then used to dictate when the header should switch between the mobile and desktop versions in addition to numerous other elements on the page.

A more complex example:
The dashboard template's Side Nav Floating Group's visibility is based on a number of factors: the page's settings, the page width, the current parameters.

Last updated