question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[sidebar] panel layout alternative to menu

See original GitHub issue

At present, the sidebar only really seems to support .menu - what I’m proposing is to add support for essentially a pane/panel that is essentially very similar to a modal (in terms of internal layout), but obviously in the sidebar

As a pane/panel, I think we should support the following:

  • header (with optional close icon which could be used instead of clicking outside the sidebar to close)
  • content (with optional scrolling content)
  • actions (fixed to bottom with scrolling content; possibly with similar onApprove and OnDeny callbacks?)

May also wish to consider adding a way of using max width and or max height for if say a mobile view (depending on the direction the menu pops out) - possibly could have fullscreenMobile as an option

Could also be good to specify the direction within JavaScript as an alternative - with mobile potentially having a different opening direction to any other screen size (eg. non-mobile opens right, but mobile opens from bottom)

Attempt on adding the CSS to support a panel, mostly extracted from modal - possibly may need to tweak padding: https://jsfiddle.net/p7z16ac4/

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
prudhocommented, Jul 1, 2021

Thank @jamessampford for CSS sample, please see #2004 for further discussion.

0reactions
lubber-decommented, Sep 22, 2022

Yes, i think everything is covered/possible using the new flyout component

Read more comments on GitHub >

github_iconTop Results From Across the Web

Layout a sidebar and main area — sidebarLayout - R Shiny
Create a layout ( sidebarLayout() ) with a sidebar ( sidebarPanel() ) and main area ( mainPanel() ). The sidebar is displayed with...
Read more >
Improve your shiny application appearance - Christophe Nicault
We used a type of layout to display a sidebar on the left and a main panel; We used different types of inputs...
Read more >
How to design friendly sidebar navigation? | by Vikalp Kaushik
Sidebar Navigation Pros: · 1. You can include multiple menu items · 2. Specific length page look better · 3. They're not difficult...
Read more >
Chapter 6 Layout, themes, HTML | Mastering Shiny
You might imagine that this code will generate a classic app design: a title bar at top, followed by a sidebar (containing a...
Read more >
Sidebars - Navigation and search - Human Interface Guidelines
A sidebar layout can take a lot of horizontal space, especially if you want the sidebar and its accompanying panes to be visible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found