contentPanel: Create a content panel

Description Usage Arguments

Description

Creates a panel for containing arbitrary content within a flex box container. This is mainly useful within gadgetPage or a tabstripPanel's tabPanel. You can use contentPanel to introduce padding and/or scrolling, but even if padding/scrolling aren't needed, it's a good idea to wrap your custom content into contentPanel as it fixes some odd behavior with percentage-based heights.

Usage

1
contentPanel(..., padding = 10, scrollable = TRUE)

Arguments

...

UI objects to be contained in the contentPanel. A single htmlwidget or plotOutput with height="100%" works well, as do fillRow/fillCol.

padding

Amount of padding to apply. Can be numeric (in pixels) or character (e.g. "3em").

scrollable

If TRUE, then content large enough to overflow the contentPanel will make scrollbars appear.


rstudio/shinygadgets documentation built on May 28, 2019, 7:54 a.m.