ListBox
FreeAlways-visible list for one choice (radio buttons underneath) or several (check boxes). Native inputs keep keyboard and screen reader behavior.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Disabled | bool | Disables interaction. |
Items | IEnumerable<TValue> | The options to choose from. |
ItemText | Func<TValue, string> | Converts an item to its display text (defaults to ToString()). |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
Multiple | bool | Allows several selected rows: click, Ctrl+click, Shift+click, Shift+arrows, Ctrl+A (VirtualList). |
Style | string | Inline style added to the root element. |
Value | TValue | Current value. Use with @bind-Value. |
Values | IReadOnlyCollection<TValue> | The numbers to plot. |
Events
| Event | Type | Description |
|---|---|---|
ValueChanged | EventCallback<TValue> | Raised when the value changes. |
ValuesChanged | EventCallback<IReadOnlyCollection<TValue>> | Raised when the chosen items change. |
Package
ListBox is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3