inst/examples/23-file-icons/ui.R

library(shiny)
library(shinyTree)

#' @author Sandro Raabe \email{sa.ra.online@posteo.de}
shinyUI(
  pageWithSidebar(
    # Application title
    headerPanel("shinyTree Directory structure"),
    
    sidebarPanel(
      helpText(HTML("Recursively change icons of tree nodes."))
    ),
    mainPanel(
      # Show a simple table.
      shinyTree("tree",types=
        "{
          'directory' : { 'icon' : 'glyphicon glyphicon-folder-open' },
          'file' : { '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.