shinyTree: Create a Shiny Tree

Description Usage Arguments See Also

Description

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

Usage

1
2
3
4
5
shinyTree(outputId, checkbox = FALSE, search = FALSE,
  searchtime = 250, dragAndDrop = FALSE, types = NULL,
  theme = "default", themeIcons = TRUE, themeDots = TRUE,
  sort = FALSE, unique = FALSE, wholerow = FALSE, stripes = FALSE,
  multiple = TRUE, animation = 200, contextmenu = FALSE)

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.

searchtime

Determines the reaction time of the search algorithm. Default is 250ms.

dragAndDrop

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

types

enables jstree types functionality when sent proper json (please see the types example)

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.

sort

If TRUE, will sort the nodes in alphabetical/numerical order.

unique

If TRUE, will ensure that no node name exists more than once.

wholerow

If TRUE, will highlight the whole selected row.

stripes

If TRUE, the tree background is striped.

multiple

If TRUE, multiple nodes can be selected.

animation

The open / close animation duration in milliseconds. Det this to FALSE to disable the animation (default is 200).

contextmenu

If TRUE, will enable a contextmenu to create/rename/delete/cut/copy/paste nodes.

See Also

renderTree


shinyTree documentation built on May 27, 2019, 5 p.m.