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