inst/examples/folder/server.R

shinyServer(
  function(input, output){

    output[["jstree"]] <-
      renderJstree(
        jstree(
          nodes, search = TRUE, checkboxes = TRUE,
          selectLeavesOnly = input[["leavesOnly"]]
        )
      )

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

    output[["treeSelected_R"]] <- renderPrint({
      input[["jstree_selected"]]
    })

  }
)

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.