inst/examples/22-dfToTree/ui.R

library(shiny)
library(shinyTree)

#' Example of creating a tree from a datatable and converting the tree back to datatable
shinyUI(
  pageWithSidebar(
    # Application title
    headerPanel("datatable to tree"),
    
    sidebarPanel(
      helpText(HTML("DataTable to ShinyTree and back.
                  <hr>Created using <a href = \"http://github.com/shinyTree/shinyTree\">shinyTree</a>."))
    ),
    mainPanel(
      # Show a simple table.
      shinyTree("tree"),
      verbatimTextOutput("list"),
      tableOutput("df")
    )
  ))

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.