Debian Codegraph @

man/htmlOutput.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/bootstrap.R
3 \name{htmlOutput}
4 \alias{htmlOutput}
5 \alias{uiOutput}
6 \title{Create an HTML output element}
7 \usage{
8 htmlOutput(
9 outputId,
10 inline = FALSE,
11 container = if (inline) span else div,
12 fill = FALSE,
13 ...
14 )
15
16 uiOutput(
17 outputId,
18 inline = FALSE,
19 container = if (inline) span else div,
20 fill = FALSE,
21 ...
22 )
23 }
24 \arguments{
25 \item{outputId}{output variable to read the value from}
26
27 \item{inline}{use an inline (\code{span()}) or block container (\code{div()})
28 for the output}
29
30 \item{container}{a function to generate an HTML element to contain the text}
31
32 \item{fill}{If \code{TRUE}, the result of \code{container} is treated as \emph{both} a fill
33 item and container (see \code{\link[htmltools:bindFillRole]{htmltools::bindFillRole()}}), which means both the
34 \code{container} as well as its immediate children (i.e., the result of
35 \code{renderUI()}) are allowed to grow/shrink to fit a fill container with an
36 opinionated height. Set \code{fill = "item"} or \code{fill = "container"} to treat
37 \code{container} as just a fill item or a fill container.}
38
39 \item{...}{Other arguments to pass to the container tag function. This is
40 useful for providing additional classes for the tag.}
41 }
42 \value{
43 An HTML output element that can be included in a panel
44 }
45 \description{
46 Render a reactive output variable as HTML within an application page. The
47 text will be included within an HTML \code{div} tag, and is presumed to contain
48 HTML content which should not be escaped.
49 }
50 \details{
51 \code{uiOutput} is intended to be used with \code{renderUI} on the server side. It is
52 currently just an alias for \code{htmlOutput}.
53 }
54 \examples{
55 htmlOutput("summary")
56
57 # Using a custom container and class
58 tags$ul(
59 htmlOutput("summary", container = tags$li, class = "custom-li-output")
60 )
61 }