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(), ...)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)
#> <div class="react-container" data-react-id="cvpeammhtuweaikfkbkz">
#> <script class="react-data" type="application/json">{"type":"element","module":"@mui/x-tree-view","name":"RichTreeView","props":{"type":"raw","value":{"items":[{"id":"1","label":"Item"}]}}}</script>
#> <script>jsmodule['@/shiny.react'].findAndRenderReactData('cvpeammhtuweaikfkbkz')</script>
#> </div>