inst/examples/imageIcon/global.R

library(jsTreeR)
library(shiny)

css <- "
i.jstree-themeicon-custom {
  background-size: contain !important;
}
"

nodes <- list(
  list(
    text = "Dupin cyclide",
    icon = "/cyclide.png",
    data = list(
      png = "cyclide.png"
    )
  ),
  list(
    text = "Hopf torus",
    icon = "/hopftorus.png",
    data = list(
      png = "hopftorus.png"
    )
  )
)

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.