EasyUI Forum
November 06, 2025, 01:05:45 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Combotree empty folder icon on: October 13, 2015, 06:37:38 PM
Trying to figure out how to display a folder tree with only 'folder' icons.  no files involved here. The idea is to choose a folder.

The default display shows a file icon for leaf nodes.

I have tried the following workaround, but the folders show up in permanently open state, whether collapsed or not.

loadFilter: function(data, parent){
   function forNodes(data, callback){
        .
        .
        }

        forNodes(data, function(node){
            node.iconCls = 'open-folder';
        });
        return data;

}



 
2  General Category / EasyUI for jQuery / Re: Tree - dynamically change icon with Formatter on: October 13, 2015, 10:36:21 AM
Is there any way to correctly assign the node icon class/image in a tree.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!