Blazorise List View API
Explore the Blazorise List View API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the List View documentation.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
Attributes | null | Dictionary<string, object> |
Captures all the custom attribute that are not part of Blazorise component. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this ListView. | ||
Class | — | string |
Custom css class-names. | ||
Data | null | IEnumerable<TItem> |
Specifies the items data source. | ||
Flush | false | bool |
Remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards). | ||
Height | — | string |
Sets the ListView Height. Defaults to empty. | ||
ItemTemplate | null | RenderFragment<ItemContext<TItem>> |
Specifies the content to be rendered inside each item of the ListView. | ||
MaxHeight | "250px" | string |
Sets the ListView MaxHeight. Defaults to 250px. | ||
Mode | Static | ListGroupMode |
Specifies the list-group behavior mode. Possible values: StaticSelectable | ||
Scrollable | true | bool |
Makes the list group scrollable by adding a vertical scrollbar. | ||
SelectedItem | null | TItem |
Currently selected item. | ||
SelectedItems | null | List<TItem> |
Currently selected items. | ||
SelectionMode | Single | ListGroupSelectionMode |
Specifies the list-group selection mode. Possible values: SingleMultiple | ||
Style | — | string |
Custom styles. | ||
Virtualize | false | bool |
Determines whether the listview will use the Virtualize functionality. | ||
Events
| Event | Type |
|---|---|
DisabledItem | Func<TItem, bool> |
Method used to get the disabled items from the supplied data source. | |
ItemBackground | Func<TItem, Background> |
Method used to get the background color for the item. | |
ItemClass | Func<TItem, string> |
Method used to get the class for the item. | |
ItemMargin | Func<TItem, IFluentSpacing> |
Method used to get the margin for the item. | |
ItemPadding | Func<TItem, IFluentSpacing> |
Method used to get the padding for the item. | |
ItemStyle | Func<TItem, string> |
Method used to get the style for the item. | |
ItemTextColor | Func<TItem, TextColor> |
Method used to get the text color for the item. | |
SelectedItemChanged | EventCallback<TItem> |
Occurs after the selected item has changed. | |
SelectedItemsChanged | EventCallback<List<TItem>> |
Occurs after the selected items has changed. | |
TextField | Func<TItem, string> |
Method used to get the display field from the supplied data source. | |
ValueField | Func<TItem, string> |
Method used to get the value field from the supplied data source. | |