EVOLUTION-MANAGER
Edit File: page.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a Bootstrap page</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for page {bslib}"><tr><td>page {bslib}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create a Bootstrap page</h2> <h3>Description</h3> <p>These functions are small wrappers around shiny's page constructors (i.e., <code><a href="../../shiny/html/fluidPage.html">shiny::fluidPage()</a></code>, <code><a href="../../shiny/html/navbarPage.html">shiny::navbarPage()</a></code>, etc) that differ in two ways: </p> <ul> <li><p> The <code>theme</code> parameter defaults bslib's recommended version of Bootstrap (for new projects). </p> </li> <li><p> The return value is rendered as an static HTML page when printed interactively at the console. </p> </li></ul> <h3>Usage</h3> <pre> page(..., title = NULL, theme = bs_theme(), lang = NULL) page_fluid(..., title = NULL, theme = bs_theme(), lang = NULL) page_fixed(..., title = NULL, theme = bs_theme(), lang = NULL) page_fill(..., padding = 0, title = NULL, theme = bs_theme(), lang = NULL) page_navbar( ..., title = NULL, id = NULL, selected = NULL, position = c("static-top", "fixed-top", "fixed-bottom"), header = NULL, footer = NULL, bg = NULL, inverse = "auto", collapsible = TRUE, fluid = TRUE, theme = bs_theme(), window_title = NA, lang = NULL ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p>The contents of the document body.</p> </td></tr> <tr valign="top"><td><code>title</code></td> <td> <p>The browser window title (defaults to the host URL of the page)</p> </td></tr> <tr valign="top"><td><code>theme</code></td> <td> <p>One of the following: </p> <ul> <li> <p><code>NULL</code> (the default), which implies a "stock" build of Bootstrap 3. </p> </li> <li><p> A <code><a href="bs_theme.html">bslib::bs_theme()</a></code> object. This can be used to replace a stock build of Bootstrap 3 with a customized version of Bootstrap 3 or higher. </p> </li> <li><p> A character string pointing to an alternative Bootstrap stylesheet (normally a css file within the www directory, e.g. <code>www/bootstrap.css</code>). </p> </li></ul> </td></tr> <tr valign="top"><td><code>lang</code></td> <td> <p>ISO 639-1 language code for the HTML page, such as "en" or "ko". This will be used as the lang in the <code><html></code> tag, as in <code><html lang="en"></code>. The default (NULL) results in an empty string.</p> </td></tr> <tr valign="top"><td><code>padding</code></td> <td> <p>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.</p> </td></tr> <tr valign="top"><td><code>id</code></td> <td> <p>a character string used for dynamically updating the container (see <code><a href="nav_select.html">nav_select()</a></code>).</p> </td></tr> <tr valign="top"><td><code>selected</code></td> <td> <p>a character string matching the <code>value</code> of a particular <code><a href="nav.html">nav()</a></code> item to selected by default.</p> </td></tr> <tr valign="top"><td><code>position</code></td> <td> <p>Determines whether the navbar should be displayed at the top of the page with normal scrolling behavior (<code>"static-top"</code>), pinned at the top (<code>"fixed-top"</code>), or pinned at the bottom (<code>"fixed-bottom"</code>). Note that using <code>"fixed-top"</code> or <code>"fixed-bottom"</code> will cause the navbar to overlay your body content, unless you add padding, e.g.: <code>tags$style(type="text/css", "body {padding-top: 70px;}")</code></p> </td></tr> <tr valign="top"><td><code>header</code></td> <td> <p>UI element(s) (<a href="../../highcharter/html/highcharter-exports.html">tags</a>) to display <em>above</em> the nav content.</p> </td></tr> <tr valign="top"><td><code>footer</code></td> <td> <p>UI element(s) (<a href="../../highcharter/html/highcharter-exports.html">tags</a>) to display <em>below</em> the nav content.</p> </td></tr> <tr valign="top"><td><code>bg</code></td> <td> <p>a CSS color to use for the navbar's background color.</p> </td></tr> <tr valign="top"><td><code>inverse</code></td> <td> <p>Either <code>TRUE</code> for a light text color or <code>FALSE</code> for a dark text color. If <code>"auto"</code> (the default), the best contrast to <code>bg</code> is chosen.</p> </td></tr> <tr valign="top"><td><code>collapsible</code></td> <td> <p><code>TRUE</code> to automatically collapse the navigation elements into a menu when the width of the browser is less than 940 pixels (useful for viewing on smaller touchscreen device)</p> </td></tr> <tr valign="top"><td><code>fluid</code></td> <td> <p><code>TRUE</code> to use fluid layout; <code>FALSE</code> to use fixed layout.</p> </td></tr> <tr valign="top"><td><code>window_title</code></td> <td> <p>the browser window title. The default value, <code>NA</code>, means to use any character strings that appear in <code>title</code> (if none are found, the host URL of the page is displayed by default).</p> </td></tr> </table> <h3>See Also</h3> <p><code><a href="../../shiny/html/bootstrapPage.html">shiny::bootstrapPage()</a></code> </p> <p><code><a href="../../shiny/html/fluidPage.html">shiny::fluidPage()</a></code> </p> <p><code><a href="../../shiny/html/fixedPage.html">shiny::fixedPage()</a></code> </p> <p><code><a href="../../shiny/html/fillPage.html">shiny::fillPage()</a></code> </p> <p><code><a href="../../shiny/html/navbarPage.html">shiny::navbarPage()</a></code> </p> <hr /><div style="text-align: center;">[Package <em>bslib</em> version 0.4.0 <a href="00Index.html">Index</a>]</div> </body></html>