Class MudVirtualize<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudVirtualize<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
Type Parameters
T
- Inheritance
-
MudVirtualize<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
MudVirtualize()
public MudVirtualize()
Properties
ChildContent
Gets or sets the item template for the list.
[Parameter]
public RenderFragment<T>? ChildContent { get; set; }
Property Value
Enabled
Set false to turn off virtualization
[Parameter]
public bool Enabled { get; set; }
Property Value
ItemSize
Gets the size of each item in pixels. Defaults to 50px.
[Parameter]
public float ItemSize { get; set; }
Property Value
Items
Gets or sets the fixed item source.
[Parameter]
public ICollection<T>? Items { get; set; }
Property Value
- ICollection<T>
ItemsProvider
Gets or sets the function providing items to the list.
[Parameter]
public ItemsProviderDelegate<T>? ItemsProvider { get; set; }
Property Value
NoRecordsContent
The content shown when there are no rows to display.
[Parameter]
public RenderFragment? NoRecordsContent { get; set; }
Property Value
OverscanCount
Gets or sets a value that determines how many additional items will be rendered before and after the visible region. This help to reduce the frequency of rendering during scrolling. However, higher values mean that more elements will be present in the page.
[Parameter]
public int OverscanCount { get; set; }
Property Value
Placeholder
Gets or sets the template for the items that have not yet been loaded in memory.
[Parameter]
public RenderFragment? Placeholder { get; set; }
Property Value
SpacerElement
Gets or sets tag name of the HTML element that will be used as virtualization spacer. Default is div.
[Parameter]
public string SpacerElement { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
RefreshDataAsync()
Refreshes the data in the Virtualize component asynchronously.
public Task RefreshDataAsync()