HxRepeater #

A data-bound list component that allows custom layout by repeating a specified template for each item displayed in the list. Analogous to the ASP.NET WebForms Repeater control.

Basic usage #

Employees

Dominik Johnson

Charlotte Harris

Alexander Wilson

Mia Davis

Lucas Miller

5 records

Note: The demos on this page use DemoDataService, in-memory simulation of a simple data store. Find the implementation on GitHub.

API #

Parameters #

Name Type Description
DataREQUIRED IEnumerable<TItem> The items to be rendered.
ItemTemplateREQUIRED RenderFragment<TItem> The template that defines how items in the Repeater component are displayed.
EmptyTemplate RenderFragment The template that defines what should be rendered in case of empty Items.
FooterTemplate RenderFragment The template that defines how the footer section of the Repeater component is displayed. Renders only if there are any items to display.
HeaderTemplate RenderFragment The template that defines how the header section of the Repeater component is displayed. Renders only if there are any items to display.
NullTemplate RenderFragment The template that defines what should be rendered in case of Items being null.
An unhandled error has occurred. Reload 🗙