inst/examples/14-files/ui.R

library(shiny)
library(shinyTree)

#' @author Michael Bell \email{[email protected]@lilly.com}
shinyUI(
  pageWithSidebar(
    # Application title
    headerPanel("Simple shinyTree!"),
    
    sidebarPanel(
      helpText(HTML("Directory Structure Example."))
    ),
    mainPanel(
      # Show a simple table.
      shinyTree("tree",types= #Types is in the same format that jstree expects
        "{
          'directory' : { 'icon' : 'glyphicon glyphicon-folder-open' },
          'default' : { 'icon' : 'glyphicon glyphicon-file', 'valid_children' : [] }
         }"
      )
    )
  ))

Try the shinyTree package in your browser

Any scripts or data that you put into this service are public.

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