inst/examples/contextMenu2/server.R

shinyServer(
  function(input, output, session){
    output[["mytree"]] <- renderJstree({
      jstree(
        nodes,
        checkCallback = TRUE,
        contextMenu = list(items = customMenu),
        types = list(
          "unalterable" = list(icon = "fa-solid fa-leaf"),
          "parent"      = list(icon = "fa-brands fa-pagelines")
        ),
        theme = "proton"
      )
    })
  }
)
stla/jsTreeR documentation built on April 28, 2024, 12:19 a.m.