|
Title: Combotree empty folder icon Post by: LastByte 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; } Title: Re: Combotree empty folder icon Post by: stworthy on October 14, 2015, 08:50:29 AM The 'open-folder' CSS style must be defined correctly:
Code: <style type="text/css"> You can use the 'loadFilter' function to custom all the leaf nodes: Code: $('#cc').combotree({ |