yonicd / jsTree

R htmlwidget for inspecting heirachal structures with the ‘jQuery’ ‘jsTree’ Plugin.
https://yonicd.github.io/jsTree/
Other
30 stars 7 forks source link

custom icons support? #4

Open dockstreet opened 6 years ago

dockstreet commented 6 years ago

Hi - how could we use custom icons for the items/folders? Is there an example... I saw a folder of themes? how could we pass with core options?

yonicd commented 6 years ago

icons are defined in plugins, not core element. https://www.jstree.com/plugins/

for now it is hardcoded in an internal function. i can expose it if need be.

https://github.com/metrumresearchgroup/jsTree/blob/master/R/makelist.R#L15

dockstreet commented 6 years ago

It would be great if it could be exposed, having the ability to customize icons would be excellent and much appreciated ... !