/ Published in: JavaScript
Where nodes have rel attribute, in this case custom icon is for rel="file".
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("#treeViewContainer") .jstree({ "core": { "animation": true, "initially_open": initiallyOpen }, "html_data": { ... }, "plugins": ["themes", "html_data", "ui", "types"], "ui": { "select_limit": 1 }, "types": { "types": { "file": { "icon": { "image": "../images/file.png" } } } } }) .bind("select_node.jstree", function (event, data) { });