InfiniteScroll
FreeLoads more content when the end of a list comes into view. It uses IntersectionObserver (with a scroll fallback) and raises OnLoadMore; set Loading while you fetch and HasMore to false at the end.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
ChildContent | RenderFragment | Content rendered inside the component. |
Class | string | Extra CSS classes added to the root element. |
EndText | string | Text shown at the end; defaults to a localized message. |
HasMore | bool | False when everything is loaded. |
Loading | bool | True while a batch is being fetched. |
Margin | string | How early to load, as a CSS margin (default 200px). |
Style | string | Inline style added to the root element. |
Events
| Event | Type | Description |
|---|---|---|
OnLoadMore | EventCallback | Raised when the end comes into view. |
Package
InfiniteScroll is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3