Learn R Programming

shinyTree (version 0.2.6)

shinyTree: Create a Shiny Tree

Description

This creates a spot in your Shiny UI for a shinyTree which can then be filled in using renderTree

Usage

shinyTree(outputId, checkbox = FALSE, search = FALSE, dragAndDrop = FALSE,
  types = NULL, theme = "default", themeIcons = TRUE, themeDots = TRUE)

Arguments

outputId

The ID associated with this element

checkbox

If TRUE, will enable checkboxes next to each node to make the selection of multiple nodes in the tree easier.

search

If TRUE, will enable search functionality in the tree by adding a search box above the produced tree. Alternatively, you can set the parameter to the ID of the text input you wish to use as the search field.

dragAndDrop

If TRUE, will allow the user to rearrange the nodes in the tree.

types

If TRUE, enables jstree types functionality

theme

jsTree theme, one of default, default-dark, or proton.

themeIcons

If TRUE, will show theme icons for each item.

themeDots

If TRUE, will include level dots.

See Also

renderTree