mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-10-26 05:40:21 +00:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			740 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			740 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  | @typeparam T | ||
|  | 
 | ||
|  | <MudButtonGroup Color="@this.Color" Variant="Variant.Filled"> | ||
|  |     @if (string.IsNullOrWhiteSpace(this.Icon)) | ||
|  |     { | ||
|  |         <MudButton OnClick="() => this.OnClick(this.selectedValue)"> | ||
|  |             @this.SelectedValueName() | ||
|  |         </MudButton> | ||
|  |     } | ||
|  |     else | ||
|  |     { | ||
|  |         <MudButton StartIcon="@this.Icon" OnClick="() => this.OnClick(this.selectedValue)"> | ||
|  |             @this.SelectedValueName() | ||
|  |         </MudButton> | ||
|  |     } | ||
|  |     <MudMenu Icon="@Icons.Material.Filled.ArrowDropDown" Style="align-self: auto;"> | ||
|  |         @foreach(var item in this.Items) | ||
|  |         { | ||
|  |             <MudMenuItem OnClick="() => this.SelectItem(item)"> | ||
|  |                 @this.NameFunc(item) | ||
|  |             </MudMenuItem> | ||
|  |         } | ||
|  |     </MudMenu> | ||
|  | </MudButtonGroup> |