I have two fiddles with the same jstree load. One of them is wrapped in the angular directive, the other is not. I am new to angular. I do not see any images in the angular version. Also the animation does not work. Am I missing the jstree plugin, or do I need to add a binding function that will add this functionality?
Here is the fiddle: (not in angular js)
Here is a simple js tree code:
$('#tree').jstree({ 'plugins' : ['themes', 'json_data', 'checkbox', 'types'], 'icon':false, 'checkbox' : { 'two_state' : true // Nessesary to disable default checking childrens }, "json_data" : { "data" : [ { "data" : "Basics", "state" : "open", "children" : [{ "data" : "login", "state" : "closed", "children" : [ "login", {"data" : "results", "state" : "open"} ] }, { "data" : "Basics", "state" : "closed", "children" : [ "login", "something",{"data" : "results", "state" : "closed"} ] } ] }, { "data" : "All", "state" : "closed", "children" : [ { "data" : "AddCustomer", "state" : "closed", "children" : [ "login","Add", {"data" : "results", "state" : "closed"} ] } ] } ] }, "types" : { "types": { "disabled" : { // Defining new type 'disabled' "check_node" : false, "uncheck_node" : false }, "default" : { // Override default functionality "check_node" : function (node) { $(node).children('ul').children('li').children('a').children('.jstree-checkbox').click(); return true; }, "uncheck_node" : function (node) { $(node).children('ul').children('li').children('a').children('.jstree-checkbox').click(); return true; } } } }
});
http://jsfiddle.net/R3vZv/
Here is the angular directive plunker:
http://plnkr.co/edit/xHIc4J