inst/examples/imageIcon/server.R

shinyServer(
  function(input, output, session){

    output[["mytree"]] <- renderJstree({
      jstree(nodes, multiple = FALSE, wholerow = TRUE)
    })

    output[["png"]] <- renderUI({
      req(length(input[["mytree_selected"]]) > 0)
      png <- input[["mytree_selected"]][[1]][["data"]][["png"]]
      tags$img(src = png, width = "55%")
    })

  }
)

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.