Panel with absolute positioning
Creates a panel whose contents are absolutely positioned.
absolutePanel(..., top = NULL, left = NULL, right = NULL, bottom = NULL, width = NULL, height = NULL, draggable = FALSE, fixed = FALSE, cursor = c("auto", "move", "default", "inherit"))
fixedPanel(..., top = NULL, left = NULL, right = NULL, bottom = NULL, width = NULL, height = NULL, draggable = FALSE, cursor = c("move", "default", "inherit"))
- Attributes (named arguments) or children (unnamed arguments) that should be included in the panel.
- Distance between the top of the panel, and the top of the page or parent container.
- Distance between the left side of the panel, and the left of the page or parent container.
- Distance between the right side of the panel, and the right of the page or parent container.
- Distance between the bottom of the panel, and the bottom of the page or parent container.
- Width of the panel.
- Height of the panel.
TRUE, allows the user to move the panel by clicking and dragging.
- Positions the panel relative to the browser window and prevents it from being scrolled with the rest of the page.
- The type of cursor that should appear when
the user mouses over the panel. Use
"move"for a north-east-south-west icon,
"default"for the usual cursor arrow, or
"inherit"for the usual cursor behavior (includ
absolutePanel function creates a
tag whose CSS
position is set to
absolute (or fixed if
fixed = TRUE). The way
absolute positioning works in HTML is that absolute coordinates are specified
relative to its nearest parent element whose position is not set to
static (which is the default), and if no such parent is found, then
relative to the page borders. If you're not sure what that means, just keep
in mind that you may get strange results if you use
inside of certain types of panels.
fixedPanel function is the same as
fixed = TRUE.
The position (
bottom) and size
height) parameters are all optional, but you should
specify exactly two of
exactly two of
width for predictable
Like most other distance parameters in Shiny, the position and size
parameters take a number (interpreted as pixels) or a valid CSS size string,
"100px" (100 pixels) or
For arcane HTML reasons, to have the panel fill the page or parent you should
rather than the more obvious
width = "100%" and
- An HTML element or list of elements.