| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/shiny.R |
| 3 |
\name{outputOptions} |
| 4 |
\alias{outputOptions} |
| 5 |
\title{Set options for an output object.} |
| 6 |
\usage{ |
| 7 |
outputOptions(x, name, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A shinyoutput object (typically \code{output}).} |
| 11 |
|
| 12 |
\item{name}{The name of an output observer in the shinyoutput object.} |
| 13 |
|
| 14 |
\item{...}{Options to set for the output observer.} |
| 15 |
} |
| 16 |
\description{ |
| 17 |
These are the available options for an output object: |
| 18 |
\itemize{ |
| 19 |
\item suspendWhenHidden. When \code{TRUE} (the default), the output object |
| 20 |
will be suspended (not execute) when it is hidden on the web page. When |
| 21 |
\code{FALSE}, the output object will not suspend when hidden, and if it |
| 22 |
was already hidden and suspended, then it will resume immediately. |
| 23 |
\item priority. The priority level of the output object. Queued outputs |
| 24 |
with higher priority values will execute before those with lower values. |
| 25 |
} |
| 26 |
} |
| 27 |
\examples{ |
| 28 |
\dontrun{ |
| 29 |
# Get the list of options for all observers within output |
| 30 |
outputOptions(output) |
| 31 |
|
| 32 |
# Disable suspend for output$myplot |
| 33 |
outputOptions(output, "myplot", suspendWhenHidden = FALSE) |
| 34 |
|
| 35 |
# Change priority for output$myplot |
| 36 |
outputOptions(output, "myplot", priority = 10) |
| 37 |
|
| 38 |
# Get the list of options for output$myplot |
| 39 |
outputOptions(output, "myplot") |
| 40 |
} |
| 41 |
|
| 42 |
} |