inst/examples/contextMenu2/ui.R

shinyUI(
  fluidPage(
    tags$head(
      tags$style(
        HTML(".green {color: green;}")
      )
    ),

    h3(
      "The first node has children and it is not possible ",
      "to delete it with the context menu."
    ),
    h3(
      "Nodes with type 'unalterable' cannot be altered with the context menu."
    ),

    jstreeOutput("mytree")
  )
)

Try the jsTreeR package in your browser

Any scripts or data that you put into this service are public.

jsTreeR documentation built on July 4, 2024, 9:08 a.m.