mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-31 00:20:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			642 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			642 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace AIStudio.Components.Blocks;
 | |
| 
 | |
| public class TreeItemData : ITreeItem
 | |
| {
 | |
|     public WorkspaceBranch Branch { get; init; } = WorkspaceBranch.NONE;
 | |
|     
 | |
|     public int Depth { get; init; }
 | |
|     
 | |
|     public string Text { get; init; } = string.Empty;
 | |
|     
 | |
|     public string ShortenedText => Text.Length > 30 ? this.Text[..30] + "..." : this.Text;
 | |
| 
 | |
|     public string Icon { get; init; } = string.Empty;
 | |
| 
 | |
|     public TreeItemType Type { get; init; }
 | |
| 
 | |
|     public string Path { get; init; } = string.Empty;
 | |
| 
 | |
|     public bool Expandable { get; init; } = true;
 | |
| 
 | |
|     public IReadOnlyCollection<TreeItemData<ITreeItem>> Children { get; init; } = [];
 | |
| } |