Close top sliding panel

  • 1
  • Question
  • Updated 2 weeks ago
  • Answered
I have a sliding panel that opens with 95% of the screen.  Within the opened sliding panel I open another sliding panel with 90% of the screen.  If I put a button on the page "Close" and choose the action "Close All Sliding Panels" it does exactly what the choice says. Is there a method to close ONLY the top sliding panel like closing the "Top Most Popup"?   
Photo of Bill Fox

Bill Fox

  • 8,870 Points 5k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,208 Points 10k badge 2x thumb
Hi Bill. There isn't currently an action available for this. I think the intention is that to close the topmost panel, the user would click outside of the panel that should be closed.  When you've got overlapping sliding panels, the scenario gets a bit more complicated. If you would like, you can of course share this as an idea with specifics about what's involved in your use-case. 
Photo of Josef Lagorio

Josef Lagorio

  • 3,372 Points 3k badge 2x thumb
A specific use case would be building a mobile application that has multiple layers. Just like the mobile page builder had page panels, this would simulate that experience allowing a user to go down multiple layers and then back as they please vs. back to home. 
Photo of Emma

Emma

  • 614 Points 500 badge 2x thumb
I don't know if this is still an issue/concern but at some point there must have been an update to this action that might help! Now the action to close sliding panels gives the option to select 'Close all' or 'Close topmost' for the sliding panels and popups as well.