A tool fills the outputs whose ids match the names of the list it
returns. mcp_text(), mcp_plot() and the other output functions make
those elements; mcp_output() turns any element into one.
Usage
mcp_output(
tag,
id = NULL,
type = c("text", "html", "plot", "table", "image", "widget")
)See also
Other components:
mcp_input(),
mcp_plot(),
mcp_select(),
mcp_submit_button()
Examples
mcp_output(htmltools::div(class = "summary-card"), id = "summary", type = "html")
#> <div class="summary-card" data-shinymcp-output="summary" data-shinymcp-output-type="html"></div>
