fancytree

Custom node icons not working in Fancytree

北战南征 提交于 2019-12-05 13:36:23
I've been using "Fancytree" in a project I'm working on and have been largely happy with it until today. I need to display a different icon on certain nodes within the tree and have, so far, been unable to get them to show up on the tree. I'm specifying the custom node icon in the JSON string below which I use to load the tree: [{ "title": "Inventory", "key": "DocFolders/1026", "folder": true, "data": { "icon": "LockedFolder.gif", "isLocked": true } }, { "title": "Telemetry", "key": "DocFolders/1027", "folder": true, "data": { "icon": "LockedFolder.gif", "isLocked": true } }, { "title": "Well

How to show the connector lines as default?

你说的曾经没有我的故事 提交于 2019-12-04 17:27:36
Hi there i have just started using this jquery tree. and was wondering if there is any property I can set to make the connecting line visible all the time. There isn't a property available in the options set connecting lines to visible all the time, but you can add a class to the object with the fancytree-container class to turn on connectors. If you want to have connections visible all the time, you could add the class to the fancytree-container right after you initialize the fancytree: $("#tree").fancytree({ // initialization options }); $(".fancytree-container").addClass("fancytree