Grid fix null exception on ItemsToShow
This commit is contained in:
		
							parent
							
								
									5f8215c5c5
								
							
						
					
					
						commit
						abcdb71bda
					
				@ -9,9 +9,9 @@ public partial class Grid<DataType> : ComponentBase
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	[Parameter]
 | 
						[Parameter]
 | 
				
			||||||
	public ObservableCollection<DataType>? Items { get; set; }
 | 
						public ObservableCollection<DataType>? Items { get; set; } = new();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	private List<DataType>? ItemsToShow { get; set; }
 | 
						private List<DataType>? ItemsToShow { get; set; } = new();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	[Parameter]
 | 
						[Parameter]
 | 
				
			||||||
	public RenderFragment<DataType>? RowTemplate { get; set; }
 | 
						public RenderFragment<DataType>? RowTemplate { get; set; }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user