print.muiTreeView: Print muiTreeView components

View source: R/browser.R

print.muiTreeViewR Documentation

Print muiTreeView components

Description

When called interactively, renders the component in the IDE viewer panel. Otherwise, falls back to standard shiny.tag printing (raw HTML text).

Usage

## S3 method for class 'muiTreeView'
print(x, browse = interactive(), ...)

Arguments

x

A muiTreeView object (also inherits shiny.tag).

browse

Whether to render in viewer. Defaults to TRUE in interactive sessions.

...

Additional arguments passed to print.

Value

Invisibly returns x.

Examples

tree <- RichTreeView(
  items = list(list(id = "1", label = "Item"))
)
# browse = FALSE prints the underlying HTML instead of opening the viewer.
print(tree, browse = FALSE)


muiTreeView documentation built on Oct. 12, 2026, 5:08 p.m.