title: How to get all children of a node in fancytree?
body: <p>I am trying to set a node's icon in fancytree. I found in online examples that I can use <strong>renderNode</strong> to do so:</p>
  
  <pre><code> $("#tree").fancytree({
    // Image folder used for data.icon attribute.
    imagePath: "skin-custom/",
    // icon: false,
    renderNode: function(event, data) {
      // Optionally tweak data.node.span
      var node = data.node;
      // Some logic here
    }
  });
  </code></pre>
  
  <p>I would like to go through the children of that node and if they are all selected, set an specific Icon. But when I get the children, I only get the first level children, meaning I don't get the node's children's children.
  Is there any way to achieve that?
  Thanks in advance</p>