Return to Snippet

Revision: 53182
at November 15, 2011 19:32 by vtoman


Initial Code
$("#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) {
		
	});

Initial URL

                                

Initial Description
Where nodes have rel attribute, in this case custom icon is for rel="file".

Initial Title
Custom icons for jsTree nodes

Initial Tags

                                

Initial Language
JavaScript