# Mobile Menu Page

## Overview

![](https://47992944-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7QCQzQXopA53eLQUo8SB%2Fuploads%2FXHYGlNEb4EZh1gnt25Qc%2F9.png?alt=media\&token=2795d636-9e49-413f-b3cc-f128016d8bb5)

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.

## Structure

* When this page is added to your app, it will come with one main group:
  * **Blocks container 860 (do not rename)**\
    This group contains the responsive settings for all blocks on the page. Any new blocks should be added to this group.
* This page comes with one popup:
  * **Popup Hidden Variables** contains two groups:
    * **var - Website object**\
      This group stores the website object (e.g., app name, primary color, and etc.)
    * **var - dummy data**\
      A placeholder group in case you want to use any hidden variable groups later.
* This page will also come with two reusable elements: [**header**](https://docs.airdev.co/canvas/canvas-functionality/reference/reusable-elements/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="info" %}
If you add more blocks to the page, please resize **Group PLACEHOLDER** so that it is not overlapping with any other elements (for responsiveness).
{% endhint %}

* \[Optional] Update page title and description content.<br>
* Add blocks to the page using our Canvas chrome extension. These new blocks should be add into **Blocks container 860 (do not rename).**<br>
* By default, the blocks should be hidden on page load (uncheck the box for *This element is visible on page load for each block*)
  * Check the box for Collapse this element's height when hidden

    \
    ![](https://47992944-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7QCQzQXopA53eLQUo8SB%2Fuploads%2FlCtj8tZoWKcVQseJegua%2F10.png?alt=media\&token=626de590-85ef-4e15-8299-24e95d0613dd)<br>
* To show or hide blocks, add conditional statements to each block:
  * For the first block, add a conditional statement like this:
    * *When **bottommenu's** Tab is empty or **bottommenu's** Tab is 1then This element is visible*
  * For blocks after the first block, add the following conditional statements:
    * *When **bottommenu's** Tab is 2 then This element is visible*
    * *When **bottommenu's** Tab is 3 then This element is visible*
    * and so on...

{% hint style="warning" %}
To ensure the FloatingGroup Bottom menu shows up at the bottom of your page, you need to align the bottom of the floating group to the bottom of the page.
{% endhint %}

![The floating group is aligned with the bottom of the page](https://47992944-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7QCQzQXopA53eLQUo8SB%2Fuploads%2Fz2J0N1aPR2Dpr2z1QZhl%2F11.png?alt=media\&token=3e779f27-9cbc-4c19-9509-1f213490f359)
