Skip to main content
Community site session details

Community site session details

Session Id :

Flyout Menu Component (Left/Right)

Edwin-Abdalian Profile Picture Posted by Edwin-Abdalian 641

I've created a flyout menu which is very easy to configure and reuse in your apps.

Just 3 steps:

  1. Create a button to show/hide the menu and set the OnSelect property of it to UpdateContext({locShowMenu: !locShowMenu)
  2. Insert the Component and set these custom properties:

**Data Source = collection or a table

Table(
    {
        Title: "Home",
        MenuIcon: Home,
        Screen: Screen1
    },
    {
        Title: "Appointments",
        MenuIcon: AddToCalendar,
        Screen: Screen2
    })

**Show Menu = locShowMenu

**Left Side Flyout = true (if you would like the menu to fly in/out from left. else set it to false to make it a right side flying menu

 

  1. Set the Visible property of the component to “Name of the Component”.ComponentVisibility. for example ‘Flyout Menu_1’.Component Visibility

Custom Properties.png

Categories:

Comments

  • johanarrenas5 Profile Picture johanarrenas5
    Posted at
    Flyout Menu Component (Left/Right)

    Hola buen dia, soy nuevo con power apps me gusto bastante su aplicacion. tengo una duda al darle click en el boton para que abra el menu. como hago que al abrir el menu el fondo este en gris como se vizualiza en el gif

  • Spata Profile Picture Spata 12
    Posted at
    Flyout Menu Component (Left/Right)

    Hi,

     

    I was wondering that is there way to so make this component visible by clicking another component (not using updatecontext). My goal is to make component that includes that icon-button that now brings flyoutmenu visible. Thanks!

  • Mike_KaiserPerm Profile Picture Mike_KaiserPerm 33
    Posted at
    Flyout Menu Component (Left/Right)

    This flyout menu started acting very weird lately.  I have it working in 1 apps, was working in a 2nd but all of sudden it stoped displaying the menu items.   I completely removed it and replaced it and setup the datasource and the items returned.   Then I updated app and it is not showing the menu items anymore.   Does anyone else have this problem and what did you do to fix it?

  • anurag_vaishnav Profile Picture anurag_vaishnav 21
    Posted at
    Flyout Menu Component (Left/Right)

    Hi

     

    Thanks for this Component, very useful, however I have one error which I cant seems to fix. All my icons are showing "Waffle Icon" as shown in attached screen. I am using table (screen2). Title and Screens seems to be working fine.

     

    Anurag

  • arlgroup Profile Picture arlgroup 39
    Posted at
    Flyout Menu Component (Left/Right)

    Can I have source file, please? Thanks

  • wahlau Profile Picture wahlau 1
    Posted at
    Flyout Menu Component (Left/Right)

    Is ok, I found the issue already, in the onselect you need to change Screen to screen manual too.

    wahlau_0-1618879914231.png

     

  • Mike_KaiserPerm Profile Picture Mike_KaiserPerm 33
    Posted at
    Flyout Menu Component (Left/Right)

    Not sure what screen target error is - post an error message that you see.   
    Is the menuIcon control in the component fixed.  that was supposed to be ThisItem.MenuIcon.

    Note the capitalization as it matters.  Everything must match.

  • wahlau Profile Picture wahlau 1
    Posted at
    Flyout Menu Component (Left/Right)

    hi, i still can't figure out, i did change Screen to screen, menu appear but can't navigate to the target

    wahlau_0-1618846360512.png

    as i found the screen target encounter error, please help

     

  • Mike_KaiserPerm Profile Picture Mike_KaiserPerm 33
    Posted at
    Flyout Menu Component (Left/Right)

    ok, this is weird but it worked and it removed the problem I had in a previous app that was using this component.

    Screen vs screen

     

    I assume Screen is a reserved word now, or that changed recently.   When I changed the structure of the collection to have a lowercase s, the error about an expected different collection went away

    Example 1 with a variable

    Set(
    _myMenu,Table(
    {
    Title: "LOGOUT",
    MenuIcon: Airplane,
    screen: SplashScreen  //This is what I changed screen from Screen.
    },
    {
    Title: "Virtual Board",
    MenuIcon: Home,
    screen: VirtualBoard  //This is what I changed screen from Screen.
    }
    )
    )


    Same way with a collection

    ClearCollect(
    colMenu,
    {
    Title: "LOGOUT",
    Icon: Airplane,
    screen: scr_SPLASH
    },
    {
    Title: "HOME",
    Icon: Home,
    screen: scr_HOME
    },

    {
    Title: "REQUEST STAFF",
    Icon: LogJournal,
    screen: scr_REQUEST
    },
    {
    Title: "ENTER AND DEPLOY STAFF",
    Icon: Icon.Draw,
    screen: scr_BACKENTER
    },
    {
    Title: "NOMINATE STAFF",
    Icon: People,
    screen: scr_NOMINATE
    },
    {
    Title: "REDEPLOY STAFF",
    Icon: DetailList,
    screen: scr_REVIEW
    },
    {
    Title: "VIEW SCHEDULES",
    Icon: Newspaper,
    screen: scr_VIEW_SCHEDULE
    },

    {
    Title: "Experiment",
    Icon: Clock,
    screen: scr_3DaySchedule
    }
    ,
    {
    Title: "EDIT RECORDS",
    Icon: Icon.Erase,
    screen: scr_EDIT_NOM
    },

    {
    Title: "CONTACTS",
    Icon: Icon.People,
    screen: scr_CONTACTS
    },

    {
    Title: "ADMIN",
    Icon: Settings,
    screen: scr_ADMIN
    },
    {
    Title: "HELP",
    Icon: Waypoint,
    screen: scr_HELP
    }
    )

     

  • Vansyork Profile Picture Vansyork
    Posted at
    Flyout Menu Component (Left/Right)

    Thanks for you anwser, It helped me fix the problem! What a weird issue... I had to put 'dummy' data in the components datasource with the same signature of the data I used to push in, and then set the datasource again on the screens side.