Debian Codegraph @

man/fixedPage.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/bootstrap-layout.R
3 \name{fixedPage}
4 \alias{fixedPage}
5 \alias{fixedRow}
6 \title{Create a page with a fixed layout}
7 \usage{
8 fixedPage(..., title = NULL, theme = NULL, lang = NULL)
9
10 fixedRow(...)
11 }
12 \arguments{
13 \item{...}{Elements to include within the container}
14
15 \item{title}{The browser window title (defaults to the host URL of the page)}
16
17 \item{theme}{One of the following:
18 \itemize{
19 \item \code{NULL} (the default), which implies a "stock" build of Bootstrap 3.
20 \item A \code{\link[bslib:bs_theme]{bslib::bs_theme()}} object. This can be used to replace a stock
21 build of Bootstrap 3 with a customized version of Bootstrap 3 or higher.
22 \item A character string pointing to an alternative Bootstrap stylesheet
23 (normally a css file within the www directory, e.g. \code{www/bootstrap.css}).
24 }}
25
26 \item{lang}{ISO 639-1 language code for the HTML page, such as "en" or "ko".
27 This will be used as the lang in the \code{<html>} tag, as in \code{<html lang="en">}.
28 The default (NULL) results in an empty string.}
29 }
30 \value{
31 A UI definition that can be passed to the \link{shinyUI} function.
32 }
33 \description{
34 Functions for creating fixed page layouts. A fixed page layout consists of
35 rows which in turn include columns. Rows exist for the purpose of making sure
36 their elements appear on the same line (if the browser has adequate width).
37 Columns exist for the purpose of defining how much horizontal space within a
38 12-unit wide grid it's elements should occupy. Fixed pages limit their width
39 to 940 pixels on a typical display, and 724px or 1170px on smaller and larger
40 displays respectively.
41 }
42 \details{
43 To create a fixed page use the \code{fixedPage} function and include
44 instances of \code{fixedRow} and \code{\link[=column]{column()}} within it. Note that
45 unlike \code{\link[=fluidPage]{fluidPage()}}, fixed pages cannot make use of higher-level
46 layout functions like \code{sidebarLayout}, rather, all layout must be done
47 with \code{fixedRow} and \code{column}.
48 }
49 \note{
50 See the \href{https://shiny.rstudio.com/articles/layout-guide.html}{ Shiny Application Layout Guide} for additional details on laying out fixed
51 pages.
52 }
53 \examples{
54 ## Only run examples in interactive R sessions
55 if (interactive()) {
56
57 ui <- fixedPage(
58 title = "Hello, Shiny!",
59 fixedRow(
60 column(width = 4,
61 "4"
62 ),
63 column(width = 3, offset = 2,
64 "3 offset 2"
65 )
66 )
67 )
68
69 shinyApp(ui, server = function(input, output) { })
70 }
71
72 }
73 \seealso{
74 \code{\link[=column]{column()}}
75
76 Other layout functions:
77 \code{\link{fillPage}()},
78 \code{\link{flowLayout}()},
79 \code{\link{fluidPage}()},
80 \code{\link{navbarPage}()},
81 \code{\link{sidebarLayout}()},
82 \code{\link{splitLayout}()},
83 \code{\link{verticalLayout}()}
84 }
85 \concept{layout functions}