mirror of
				https://github.com/richard-loafle/fuse-angular.git
				synced 2025-10-31 15:43:33 +00:00 
			
		
		
		
	(Angular Material Examples) Updated the examples
This commit is contained in:
		
							parent
							
								
									23b86a7e3d
								
							
						
					
					
						commit
						8b14366763
					
				| @ -100,7 +100,10 @@ export class DynamicDataSource { | |||||||
|           new DynamicFlatNode(name, node.level + 1, this.database.isExpandable(name))); |           new DynamicFlatNode(name, node.level + 1, this.database.isExpandable(name))); | ||||||
|         this.data.splice(index + 1, 0, ...nodes); |         this.data.splice(index + 1, 0, ...nodes); | ||||||
|       } else { |       } else { | ||||||
|         this.data.splice(index + 1, children.length); |         let count = 0; | ||||||
|  |         for (let i = index + 1; i < this.data.length | ||||||
|  |           && this.data[i].level > node.level; i++, count++) {} | ||||||
|  |         this.data.splice(index + 1, count); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|       // notify the change
 |       // notify the change
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user