RayCraftDocs
v1.0.3 raycraft.dev
On this page

InfiniteScroll

Free

Loads 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

InfiniteScroll control

Parameters

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
EndTextstringText shown at the end; defaults to a localized message.
HasMoreboolFalse when everything is loaded.
LoadingboolTrue while a batch is being fetched.
MarginstringHow early to load, as a CSS margin (default 200px).
StylestringInline style added to the root element.

Events

EventTypeDescription
OnLoadMoreEventCallbackRaised when the end comes into view.

Package

InfiniteScroll is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.