inst/examples/fontawesome/server.R

shinyServer(
  function(input, output){

    output[["jstree"]] <- renderJstree({
      jstree(
        nodes, dragAndDrop = TRUE, checkboxes = TRUE, theme = "proton",
        selectLeavesOnly = TRUE
      )
    })

    output[["treeState"]] <- renderPrint({
      toJSON(input[["jstree"]], pretty = TRUE, auto_unbox = TRUE)
    })

    output[["treeSelected"]] <- renderPrint({
      toJSON(input[["jstree_selected"]], pretty = TRUE, auto_unbox = TRUE)
    })

  }
)

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.