| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/jqueryui.R |
| 3 |
\name{absolutePanel} |
| 4 |
\alias{absolutePanel} |
| 5 |
\alias{fixedPanel} |
| 6 |
\title{Panel with absolute positioning} |
| 7 |
\usage{ |
| 8 |
absolutePanel( |
| 9 |
..., |
| 10 |
top = NULL, |
| 11 |
left = NULL, |
| 12 |
right = NULL, |
| 13 |
bottom = NULL, |
| 14 |
width = NULL, |
| 15 |
height = NULL, |
| 16 |
draggable = FALSE, |
| 17 |
fixed = FALSE, |
| 18 |
cursor = c("auto", "move", "default", "inherit") |
| 19 |
) |
| 20 |
|
| 21 |
fixedPanel( |
| 22 |
..., |
| 23 |
top = NULL, |
| 24 |
left = NULL, |
| 25 |
right = NULL, |
| 26 |
bottom = NULL, |
| 27 |
width = NULL, |
| 28 |
height = NULL, |
| 29 |
draggable = FALSE, |
| 30 |
cursor = c("auto", "move", "default", "inherit") |
| 31 |
) |
| 32 |
} |
| 33 |
\arguments{ |
| 34 |
\item{...}{Attributes (named arguments) or children (unnamed arguments) that |
| 35 |
should be included in the panel.} |
| 36 |
|
| 37 |
\item{top}{Distance between the top of the panel, and the top of the page or |
| 38 |
parent container.} |
| 39 |
|
| 40 |
\item{left}{Distance between the left side of the panel, and the left of the |
| 41 |
page or parent container.} |
| 42 |
|
| 43 |
\item{right}{Distance between the right side of the panel, and the right of |
| 44 |
the page or parent container.} |
| 45 |
|
| 46 |
\item{bottom}{Distance between the bottom of the panel, and the bottom of the |
| 47 |
page or parent container.} |
| 48 |
|
| 49 |
\item{width}{Width of the panel.} |
| 50 |
|
| 51 |
\item{height}{Height of the panel.} |
| 52 |
|
| 53 |
\item{draggable}{If \code{TRUE}, allows the user to move the panel by |
| 54 |
clicking and dragging.} |
| 55 |
|
| 56 |
\item{fixed}{Positions the panel relative to the browser window and prevents |
| 57 |
it from being scrolled with the rest of the page.} |
| 58 |
|
| 59 |
\item{cursor}{The type of cursor that should appear when the user mouses over |
| 60 |
the panel. Use \code{"move"} for a north-east-south-west icon, |
| 61 |
\code{"default"} for the usual cursor arrow, or \code{"inherit"} for the |
| 62 |
usual cursor behavior (including changing to an I-beam when the cursor is |
| 63 |
over text). The default is \code{"auto"}, which is equivalent to |
| 64 |
\code{ifelse(draggable, "move", "inherit")}.} |
| 65 |
} |
| 66 |
\value{ |
| 67 |
An HTML element or list of elements. |
| 68 |
} |
| 69 |
\description{ |
| 70 |
Creates a panel whose contents are absolutely positioned. |
| 71 |
} |
| 72 |
\details{ |
| 73 |
The \code{absolutePanel} function creates a \verb{<div>} tag whose CSS |
| 74 |
position is set to \code{absolute} (or fixed if \code{fixed = TRUE}). The way |
| 75 |
absolute positioning works in HTML is that absolute coordinates are specified |
| 76 |
relative to its nearest parent element whose position is not set to |
| 77 |
\code{static} (which is the default), and if no such parent is found, then |
| 78 |
relative to the page borders. If you're not sure what that means, just keep |
| 79 |
in mind that you may get strange results if you use \code{absolutePanel} from |
| 80 |
inside of certain types of panels. |
| 81 |
|
| 82 |
The \code{fixedPanel} function is the same as \code{absolutePanel} with |
| 83 |
\code{fixed = TRUE}. |
| 84 |
|
| 85 |
The position (\code{top}, \code{left}, \code{right}, \code{bottom}) and size |
| 86 |
(\code{width}, \code{height}) parameters are all optional, but you should |
| 87 |
specify exactly two of \code{top}, \code{bottom}, and \code{height} and |
| 88 |
exactly two of \code{left}, \code{right}, and \code{width} for predictable |
| 89 |
results. |
| 90 |
|
| 91 |
Like most other distance parameters in Shiny, the position and size |
| 92 |
parameters take a number (interpreted as pixels) or a valid CSS size string, |
| 93 |
such as \code{"100px"} (100 pixels) or \code{"25\%"}. |
| 94 |
|
| 95 |
For arcane HTML reasons, to have the panel fill the page or parent you should |
| 96 |
specify \code{0} for \code{top}, \code{left}, \code{right}, and \code{bottom} |
| 97 |
rather than the more obvious \code{width = "100\%"} and \code{height = "100\%"}. |
| 98 |
} |