Custom images for each node
COOLjsTree Professional allows you to define custom images for individual nodes. To assign some other image set to particular node, you have to modify nodes description file:
var type_doc1 = {
"format":{
"eimages":[
"img/i_document.gif",
"img/i_document.gif",
"img/i_document.gif",
"img/minus.gif",
"img/minusbottom.gif",
"img/plus.gif",
"img/plusbottom.gif",
"img/line.gif",
"img/join.gif",
"img/joinbottom.gif"
]
}
};
...
var TREE1_NODES = [
...
['Picture.gif', null, null, type_doc1],
...
];
As you can see, this declaration replaces field nr.15 with new array of images for one node. For more details please refer to the documentation.