EasyUI Forum
May 01, 2024, 04:05:51 PM *
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 Angular / Re: Tree still show loading icon in case node doesn't have any children ? on: January 14, 2019, 09:34:40 PM
If a node hasn't any children, its state can't be set to 'closed'. It will be a leaf node.
But i using lazy load,so don't know if this node have childs or not
2  General Category / EasyUI for Angular / Tree still show loading icon in case node doesn't have any children ? on: January 01, 2019, 11:26:47 PM
i using Tree component with lazy-load, everything looks good, but in case a node does not have any children and result is empty, the loading icon does not disappear, So I did something wrong or this is an issue of component ?

Code:
onNodeExpand(event){
        let node = event;
        if (!node.children) {
            this.dataService.getNodes(node).subscribe((data) => node.children = data);
            // data = [] when this node doesn't have any child
        }
 }
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!