inst/examples/09-themes/ui.R

library(shiny)
library(shinyTree)

#' Define UI for application that demonstrates a simple Tree editor
#' @author Mike Schaffer \email{mschaff@gmail.com}
shinyUI(
  pageWithSidebar(
    # Application title
    headerPanel("shinyTree with built-in themes"),
    
    sidebarPanel(
      helpText(HTML("An example of using shinyTree themes."))
    ),
    mainPanel(
      "Theme: default",
      shinyTree("tree", theme="default"),
      hr(),
      "Theme: default-dark",
      shinyTree("tree2", theme="default-dark"),
      hr(),
      "Theme: proton",
      shinyTree("tree3", theme="proton"),
      hr(),
      "Theme: proton without icons and dots",
      shinyTree("tree4", theme="proton", themeIcons = FALSE, themeDots = FALSE)
    )
  ))

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.