title: jquery - fancy tree - no data present
body: <p>I am using jquery fancy tree to represent a tree in my web app. </p>
  
  <p><a href="https://github.com/mar10/fancytree" rel="nofollow">https://github.com/mar10/fancytree</a></p>
  
  <p>Here's my code as below. The issue is, when the source URL /documents/folders, returns an empty list, I would like my html to show the text "No Documents found". I searched the API but there is no way of doing this directly with the plugin. </p>
  
  <p>I am new to the world of webapps. Could someone please point me in the right direction?</p>
  
  <pre><code>&lt;div class="row" id="toprow"&gt;
      &lt;div class="col-md-4" id="treeContainer"&gt;
          &lt;h4&gt;Choose a Document Type from the drop-down&lt;/h4&gt;
          &lt;div id="tree"&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
      $(function(){
          $("#tree").fancytree({
              source: {
                  url: "/documents/folders"
              },
  
          });
      });
  &lt;/script&gt;
  </code></pre>