| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/modules.R |
| 3 |
\name{callModule} |
| 4 |
\alias{callModule} |
| 5 |
\title{Invoke a Shiny module} |
| 6 |
\usage{ |
| 7 |
callModule(module, id, ..., session = getDefaultReactiveDomain()) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{module}{A Shiny module server function} |
| 11 |
|
| 12 |
\item{id}{An ID string that corresponds with the ID used to call the module's |
| 13 |
UI function} |
| 14 |
|
| 15 |
\item{...}{Additional parameters to pass to module server function} |
| 16 |
|
| 17 |
\item{session}{Session from which to make a child scope (the default should |
| 18 |
almost always be used)} |
| 19 |
} |
| 20 |
\value{ |
| 21 |
The return value, if any, from executing the module server function |
| 22 |
} |
| 23 |
\description{ |
| 24 |
Note: As of Shiny 1.5.0, we recommend using \code{\link[=moduleServer]{moduleServer()}} instead of |
| 25 |
\code{\link[=callModule]{callModule()}}, because the syntax is a little easier |
| 26 |
to understand, and modules created with \code{moduleServer} can be tested with |
| 27 |
\code{\link[=testServer]{testServer()}}. |
| 28 |
} |