Blazorise List Group API
Explore the Blazorise List Group API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the List Group documentation.
API
Parameters
ListGroup
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Defines the component child content. |
RenderFragment | 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 |
Mode |
Specifies the list-group behavior mode. Possible values: |
ListGroupMode | ListGroupMode.Static |
Scrollable |
Makes the list group scrollable by adding a vertical scrollbar. |
bool | false |
SelectedItem |
Specifies the currently selected item name. |
string | |
SelectedItems |
Specifies the currently selected items names. |
List<string> | null |
SelectionMode |
Specifies the list-group selection mode. Possible values: |
ListGroupSelectionMode | ListGroupSelectionMode.Single |
ListGroupItem
| Parameter | Description | Type | Default |
|---|---|---|---|
ChildContent |
Specifies the content to be rendered inside this ListGroupItem. |
RenderFragment | null |
Color |
Specifies the list-group-item color. |
Color | Color.Default |
Disabled |
Makes the item to make it appear disabled. |
bool | false |
Intent |
Specifies the list-group-item intent. |
Intent | null |
Name |
Specifies the item name. |
string |
Events
ListGroup
| Event | Description | Type |
|---|---|---|
SelectedItemChanged |
An event raised when SelectedItem is changed. |
EventCallback<string> |
SelectedItemsChanged |
An event raised when SelectedItems are changed. |
EventCallback<List<string>> |
ListGroupItem
| Event | Description | Type |
|---|---|---|
Clicked |
Notifies when the item is clicked. |
EventCallback<MouseEventArgs> |
Methods
ListGroup
| Method | Description | Return | Parameters |
|---|---|---|---|
SelectItem |
Sets the active item by the name. | Task | string name |