imageHtmlField : stringDefault: 'imageHtml'

Image html field name.

Examples

Default HTML Field Name

    
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         dataSource: [ { text: 'folder', imageHtml: '<i class="material-icons">folder</i>', children: [ { text: 'file', imageHtml: '<i class="material-icons">insert_drive_file</i>' } ] } ]
     });
 </script>

  

Custom HTML Field Name

    
 <div id="tree"></div>
 <script>
     var tree = $('#tree').tree({
         imageHtmlField: 'icon',
         dataSource: [ { text: 'folder', icon: '<i class="material-icons">folder</i>', children: [ { text: 'file', icon: '<i class="material-icons">insert_drive_file</i>' } ] } ]
     });
 </script>