inst/examples/11-tree-update/ui.R

library(shinyTree)

shinyUI(
	fluidPage(
		sidebarLayout(
			sidebarPanel(
				selectInput("idTree",
							label = "Select a tree",
							choices = list("",
							               "A" = "A",
							               "A_closed" = "A_closed",
							               "B" = "B", 
							               "List" ="List"),
							selected = NULL)
			),
			mainPanel(
			  h4("Tree Update"),
			  "The tree is initialized, but not populated until a choices is selected in the dropdown menu.",
			  shinyTree("tree"),
			  hr(),
				"Currently selected:",
				verbatimTextOutput("idSelected")#,
			)
		)
	)
)

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.