InfiniteScrolling<T> Class

public class InfiniteScrolling<T> : ComponentBase, IAsyncDisposable

Type parameters

T

No documentation is available.

Inheritance
ComponentBase InfiniteScrolling<T>
Implements

Constructors

NameDescription
InfiniteScrolling()

InfiniteScrolling()

InfiniteScrolling.razor
public InfiniteScrolling()

No documentation is available.

Properties

NameDescription
ItemTemplateGets or sets the template for rendering each item.
ItemsProviderGets or sets the delegate that provides items to display. This delegate is called when more items need to be loaded.
LastItemIndicatorElementGets or sets the tag name of the HTML element that will be used as the virtualization spacer. One such element will be rendered before the visible items, and one more after them, using an explicit "height" style to control the scroll range. The default value is "div". If you are placing the InfiniteScrolling<T> instance inside an element that requires a specific child tag name, consider setting that here. For example when rendering inside a "tbody", consider setting InfiniteScrolling<T>.LastItemIndicatorElement to the value "tr".
LoadingTemplateGets or sets the template to display while loading more items.

Gets or sets the template for rendering each item.

public RenderFragment<T>? ItemTemplate { get; set; }

Property value

RenderFragment<T>?

Gets or sets the delegate that provides items to display. This delegate is called when more items need to be loaded.

public InfiniteScrollingItemsProviderRequestDelegate<T>? ItemsProvider { get; set; }

LastItemIndicatorElement

InfiniteScrolling.razor

Gets or sets the tag name of the HTML element that will be used as the virtualization spacer. One such element will be rendered before the visible items, and one more after them, using an explicit "height" style to control the scroll range. The default value is "div". If you are placing the InfiniteScrolling<T> instance inside an element that requires a specific child tag name, consider setting that here. For example when rendering inside a "tbody", consider setting InfiniteScrolling<T>.LastItemIndicatorElement to the value "tr".

public string LastItemIndicatorElement { get; set; }

Property value

string

Gets or sets the template to display while loading more items.

public RenderFragment? LoadingTemplate { get; set; }

Property value

RenderFragment?

Methods

NameDescription
BuildRenderTree(RenderTreeBuilder)
DisposeAsync()
LoadMoreItems()
OnAfterRenderAsync(bool)
OnParametersSet()
RefreshDataAsync()

BuildRenderTree(RenderTreeBuilder)

InfiniteScrolling.razor
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

No documentation is available.

net10.0

public ValueTask DisposeAsync()

net11.0

public ValueTask DisposeAsync()

Returns

ValueTask

No documentation is available.

net10.0

public Task LoadMoreItems()

net11.0

public Task LoadMoreItems()

Returns

Task

No documentation is available.

OnAfterRenderAsync(bool)

InfiniteScrolling.razor

net10.0

protected override Task OnAfterRenderAsync(bool firstRender)

net11.0

protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender bool

Returns

Task

No documentation is available.

OnParametersSet()

InfiniteScrolling.razor
protected override void OnParametersSet()

No documentation is available.

RefreshDataAsync()

InfiniteScrolling.razor

net10.0

public Task RefreshDataAsync()

net11.0

public Task RefreshDataAsync()

Returns

Task

No documentation is available.