inst/examples/07-drag-and-drop/ui.R

library(shiny)
library(shinyTree)

#' Define UI for application that demonstrates a simple Tree editor
#' @author Jeff Allen \email{jeff@@trestletech.com}
shinyUI(
  pageWithSidebar(
    headerPanel("Drag-and-Drop shinyTree"),
    
    sidebarPanel(      
      shinyTree("tree", dragAndDrop=TRUE, sort = F, wholerow = T, unique = T),
      HTML("<hr />"),
      helpText(p("Drag some of the nodes in the tree around to see the structure on the right update."),
               HTML("<hr />Created using <a href = \"http://github.com/trestletech/shinyTree\">shinyTree</a>."))
    ),
    mainPanel(
      verbatimTextOutput("str")  
    )
  ))
trestletech/shinyTree documentation built on Feb. 24, 2024, 9:10 p.m.