shinyFileTree: Create a Shiny File Tree

Description Usage Arguments Examples

Description

This creates a widget with a shiny file tree. The widget is based on jstree, and the R implementation has the same implementation as jstree. For more details, please refer to https://www.jstree.com/docs/config/ and https://www.jstree.com/api/#/?q=$.jstree.defaults

Usage

1
2
3
4
5
6
7
8
shinyFileTree(data, plugins = NULL, opts = shinyFileTreeOpts(),
  default_plugin_opts = list(checkbox = list(visible = TRUE, three_state
  = TRUE, whole_node = TRUE, cascade = TRUE), contextmenu =
  list(select_node = TRUE, show_at_node = TRUE), search =
  list(case_sensitive = FALSE, show_only_matches = TRUE), types = list(file
  = list(icon = "glyphicon glyphicon-flash"))), ...,
  is_directory = FALSE, directory_depth = NULL,
  show_dir_info = FALSE, width = NULL, height = NULL)

Arguments

data
plugins
opts
default_plugin_opts
...
is_directory
width
height

Examples

1
2
3
4
5
6
shinyFileTree(system.file(package="shinyFileTree"), 
             is_directory = TRUE,
             plugins = c("checkbox"),
             multiple = TRUE,
             opts = shinyFileTreeOpts(icons = TRUE)
)

fbreitwieser/shinyFileTree documentation built on May 16, 2019, 12:03 p.m.