Repeater<T> Class

public class Repeater<T> : ComponentBase

Type parameters

T

No documentation is available.

Inheritance
ComponentBase Repeater<T>

Constructors

NameDescription
Repeater()

Repeater()

Repeater.razor
public Repeater()

No documentation is available.

Properties

NameDescription
EmptyTemplateGets or sets the template to display when the collection is empty.
ItemSeparatorTemplateGets or sets the template to render between each item in the collection.
ItemTemplateGets or sets the template for rendering each item in the collection.
ItemsGets or sets the collection of items to render. When null, the Repeater<T>.LoadingTemplate is displayed.
LoadingTemplateGets or sets the template to display while the items are being loaded (when Repeater<T>.Items is null).
RepeaterContainerTemplateGets or sets the container template that wraps all items. The default template renders items directly without a container.

EmptyTemplate

Repeater.razor

Gets or sets the template to display when the collection is empty.

public RenderFragment? EmptyTemplate { get; set; }

Property value

RenderFragment?

ItemSeparatorTemplate

Repeater.razor

Gets or sets the template to render between each item in the collection.

public RenderFragment? ItemSeparatorTemplate { get; set; }

Property value

RenderFragment?

ItemTemplate

Repeater.razor

Gets or sets the template for rendering each item in the collection.

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

Property value

RenderFragment<T>?

Gets or sets the collection of items to render. When null, the Repeater<T>.LoadingTemplate is displayed.

public IEnumerable<T>? Items { get; set; }

Property value

IEnumerable<T>?

LoadingTemplate

Repeater.razor

Gets or sets the template to display while the items are being loaded (when Repeater<T>.Items is null).

public RenderFragment? LoadingTemplate { get; set; }

Property value

RenderFragment?

RepeaterContainerTemplate

Repeater.razor

Gets or sets the container template that wraps all items. The default template renders items directly without a container.

public RenderFragment<RenderFragment> RepeaterContainerTemplate { get; set; }

Methods

NameDescription
BuildRenderTree(RenderTreeBuilder)
OnParametersSet()

BuildRenderTree(RenderTreeBuilder)

Repeater.razor
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

No documentation is available.

OnParametersSet()

Repeater.razor
protected override void OnParametersSet()

No documentation is available.