mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-29 08:48:13 -05:00
21 lines
546 B
R
21 lines
546 B
R
\name{singleton}
|
|
\alias{singleton}
|
|
\title{Include Content Only Once}
|
|
\usage{
|
|
singleton(x)
|
|
}
|
|
\arguments{
|
|
\item{x}{A \code{\link{tag}}, text, \code{\link{HTML}},
|
|
or list.}
|
|
}
|
|
\description{
|
|
Use \code{singleton} to wrap contents (tag, text, HTML,
|
|
or lists) that should be included in the generated
|
|
document only once, yet may appear in the
|
|
document-generating code more than once. Only the first
|
|
appearance of the content (in document order) will be
|
|
used. Useful for custom components that have JavaScript
|
|
files or stylesheets.
|
|
}
|
|
|