title: jstree - How to enable the folder & file operations?
body: <p>In rails 4.2.2, I am implementing a jstree feature. Script is like below,</p>
  
  <pre><code>$('#tree').jstree({
   'core' : {
     'data' : {
       'url' : function (node) {
         return '/users/files/treedata.json'
       },
       'data' : function (node) {
         return { 'id' : node.id };
       }
     }
   }
  });
  </code></pre>
  
  <p>Generated JSON data is like</p>
  
  <pre><code>[{"id":1,"text":"Home","parent":"#","user_id":1,"asset_id":null,"root_node":true,"created_at":"2015-09-15T09:34:15.000Z","updated_at":"2015-09-15T09:34:15.000Z"},{"id":2,"text":"kishore","parent":"1","user_id":1,"asset_id":1,"root_node":false,"created_at":"2015-09-15T09:34:16.000Z","updated_at":"2015-09-15T09:34:16.000Z"}]
  </code></pre>
  
  <p>Referred by <a href="https://www.jstree.com" rel="nofollow">https://www.jstree.com</a></p>
  
  <p>Right now root node &amp; child nodes are displaying with folder icons, how to change the icon for child nodes?</p>
  
  <p>Also how to enable the folder and file operations("contextmenu") feature?</p>