Skip to contents

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")
)

Arguments

tag

A tag.

id

The output id. Defaults to the element's own id.

type

How to show the value: "text", "html", "plot", "table", "image", or "widget".

Value

tag, marked.

See also

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>