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)
    )
  ))
trestletech/shinyTree documentation built on Feb. 24, 2024, 9:10 p.m.