inst/examples/24-checkbox-options/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(
    # Application title
    headerPanel("shinyTree with checkbox options"),
    
    sidebarPanel(
      helpText(HTML("An example of a shinyTree with the <code>checkbox</code> parameter enabled but with options <code>tie_selection, whole_node</code>, and  <code>three_state</code> set to false  such that checked nodes are not tied to selected nodes and can be manipulated by themselves
                  <hr>Created using <a href = \"http://github.com/trestletech/shinyTree\">shinyTree</a>."))
    ),
    mainPanel(
      # Show a simple table.
      shinyTree("tree", checkbox = TRUE, three_state=FALSE, whole_node=FALSE, tie_selection=FALSE),
  ))
)
trestletech/shinyTree documentation built on Feb. 24, 2024, 9:10 p.m.