inst/examples/14-files/ui.R

library(shiny)
library(shinyTree)

#' @author Michael Bell \email{bellma@@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 Aug. 8, 2023, 1:08 a.m.