The VirtualScroll for Blazor displays large lists of elements performantly by only rendering the items that fit on-screen.
Loading hundreds of elements can be slow in any browser; virtual scrolling enables a performant way to simulate all items being rendered by making the height of the container element the same as the height of total number of elements to be rendered, and then only rendering the items in view.
Name | Type | Description |
---|---|---|
ItemType | Generic argument | |
Attributes | Dictionary<String,Object> | Gets or sets a collection of additional attributes that will be applied to the created element. |
ChildContent | RenderFragment | Child content of MatVirtualScroll |
Class | String | Specifies one or more classnames for an DOM element. |
Disabled | Boolean | |
Id | String | |
ItemHeight | Int32 | |
Items | IEnumerable<ItemType> | |
ItemTemplate | RenderFragment<ItemType> | |
RefBack | ForwardRef | |
Style | String | Specifies an inline style for an DOM element. |
Ref | ElementReference | Returned ElementRef reference for DOM element. |