imageUrlField : stringDefault: 'imageUrl'

Image url field name.

Examples

Default HTML Field Name

    
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         dataSource: [ { text: 'World', imageUrl: 'http://gijgo.com/content/icons/world-icon.png', children: [ { text: 'USA', imageUrl: 'http://gijgo.com/content/icons/usa-oval-icon.png' } ] } ]
     });
 </script>

  

Custom HTML Field Name

    
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         imageUrlField: 'icon',
         dataSource: [ { text: 'World', icon: 'http://gijgo.com/content/icons/world-icon.png', children: [ { text: 'USA', icon: 'http://gijgo.com/content/icons/usa-oval-icon.png' } ] } ]
     });
 </script>