# Mobile Menu Page

## Overview

Standard one column page layout where multiple modules can be stacked on top of each other (they should not be overlapping). This page includes a bottom navigation menu that is optimized for use on mobile. The menu displays four destinations and each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon. Please ensure that you have installed the **Feather Icon plugin** to your app before submitting your page request.

![](https://8331092-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbzMeM9XfnblRd78nga%2F-LeESIuWIxigpq1SYFE5%2F-LeES_-ffS5cVTpl2mj_%2Fshot-20190506-9077-uargof.jpeg?alt=media\&token=a30d00bb-f8cb-48c9-ae5e-dd59707cebac)

## Structure

* When this page is added to your app, it will come with one main group:
  * `Group page860Group` - This group contains the responsive settings for all modules. All modules should be placed into this group.
* This page will come with a `Popup Hidden Variables`. For more information on how to use the `Popup Hidden Variables`, [click here](https://docs.airdev.co/canvas/general-information/functionality/hidden-variables-popup).
  * `var - Website object` - This group stores the website object (e.g., app name, primary color, and etc.)
  * `var - dummy` - This is a placeholder group. You can store any data here by updating the type of content and data source of the group.

![](https://8331092-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbzMeM9XfnblRd78nga%2F-Lchd3oym31CBvQhD45e%2F-Lcl_v9s8r8r-flnNnQD%2FScreen%20Shot%202019-04-18%20at%2010.56.11%20AM.png?alt=media\&token=f2441e9f-a8bc-4270-8abd-247fbf4b4170)

* This page will also come with two reusable elements: [`header A`](https://docs.airdev.co/canvas/assets/reuseables/header) and `bottommenu`.
  * The `bottommenu` reusable element comes with four tabs
  * Clicking on a tab will trigger a custom workflow called `Set tab number`
    * The custom workflow will set a number state on `bottommenu` (this captures which tab the user is currently viewing)
  * The reusable element also includes a `Popup Hidden Variables`
    * `var - toggle tabs` stores bottommenu's number state

## How to set up

{% hint style="warning" %}
Make sure you are using the latest Canvas Starter Template and that you have installed the [Feather Icon Plugin](https://bubble.is/plugin/feather-icons-1553889862898x186125300131692540) to your app.
{% endhint %}

* Resize `Group page860Group` and add other modules inside of it

![](https://8331092-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbzMeM9XfnblRd78nga%2F-LeESIuWIxigpq1SYFE5%2F-LeEWIvMOHpMonqO_Njk%2FScreen%20Shot%202019-05-06%20at%204.40.17%20PM.png?alt=media\&token=c2b1027b-2841-4972-bc37-23ad6da037e3)

{% hint style="info" %}
If you add more modules, please resize `Group PLACEHOLDER` so that it is not overlapping with any other elements (for responsiveness)/
{% endhint %}

* Update Title Text (please note that `Group Title` will be hidden when the page width is less than or equal to 500px)<br>
* By default, the modules should be hidden on page load (uncheck the box for `This element is visible on page load` for each module)

  * Check the box for `Collapse this element's height when hidden`

  \
  ![](https://8331092-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbzMeM9XfnblRd78nga%2F-LclhFljCbaC3zcSJIGH%2F-LcmERi_fxV9hJ_0K2iR%2FScreen%20Shot%202018-10-09%20at%202.21.27%20PM.png?alt=media\&token=244ced31-cef1-4010-97d0-9486bc3b3157)<br>
* To show or hide modules, add conditional statements to each module:
  * For the first module, add the conditional statement
    * `bottommenu's Tab is empty or bottommenu's Tab is 1`then `This element is visible`
  * For modules after the first module, add the following conditional statement:
    * `bottommenu's Tab is 2` then `This element is visible`
    * `bottommenu's Tab is 3` then `This element is visible`
    * and so on..

![](https://8331092-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbzMeM9XfnblRd78nga%2F-LeESIuWIxigpq1SYFE5%2F-LeE_Q_QDgZEbeDj5n_7%2FScreen%20Shot%202019-05-06%20at%204.54.11%20PM.png?alt=media\&token=3cbec10c-bfb8-4a5d-a047-1a2f7bbd19ce)
