% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bootstrap.R \name{fillPage} \alias{fillPage} \title{Create a page that fills the window} \usage{ fillPage( ..., padding = 0, title = NULL, bootstrap = TRUE, theme = NULL, lang = NULL ) } \arguments{ \item{...}{Elements to include within the page.} \item{padding}{Padding to use for the body. This can be a numeric vector (which will be interpreted as pixels) or a character vector with valid CSS lengths. The length can be between one and four. If one, then that value will be used for all four sides. If two, then the first value will be used for the top and bottom, while the second value will be used for left and right. If three, then the first will be used for top, the second will be left and right, and the third will be bottom. If four, then the values will be interpreted as top, right, bottom, and left respectively.} \item{title}{The title to use for the browser window/tab (it will not be shown in the document).} \item{bootstrap}{If \code{TRUE}, load the Bootstrap CSS library.} \item{theme}{One of the following: \itemize{ \item \code{NULL} (the default), which implies a "stock" build of Bootstrap 3. \item A \code{\link[bslib:bs_theme]{bslib::bs_theme()}} object. This can be used to replace a stock build of Bootstrap 3 with a customized version of Bootstrap 3 or higher. \item A character string pointing to an alternative Bootstrap stylesheet (normally a css file within the www directory, e.g. \code{www/bootstrap.css}). }} \item{lang}{ISO 639-1 language code for the HTML page, such as "en" or "ko". This will be used as the lang in the \code{} tag, as in \code{}. The default (NULL) results in an empty string.} } \description{ \code{fillPage} creates a page whose height and width always fill the available area of the browser window. } \details{ The \code{\link[=fluidPage]{fluidPage()}} and \code{\link[=fixedPage]{fixedPage()}} functions are used for creating web pages that are laid out from the top down, leaving whitespace at the bottom if the page content's height is smaller than the browser window, and scrolling if the content is larger than the window. \code{fillPage} is designed to latch the document body's size to the size of the window. This makes it possible to fill it with content that also scales to the size of the window. For example, \code{fluidPage(plotOutput("plot", height = "100\%"))} will not work as expected; the plot element's effective height will be \code{0}, because the plot's containing elements (\verb{