RayCraftDocs
v1.0.3 raycraft.dev
On this page

ListBox

Free

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

Example

ListBox control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
ItemsIEnumerable<TValue>The options to choose from.
ItemTextFunc<TValue, string>Converts an item to its display text (defaults to ToString()).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MultipleboolAllows several selected rows: click, Ctrl+click, Shift+click, Shift+arrows, Ctrl+A (VirtualList).
StylestringInline style added to the root element.
ValueTValueCurrent value. Use with @bind-Value.
ValuesIReadOnlyCollection<TValue>The numbers to plot.

Events

EventTypeDescription
ValueChangedEventCallback<TValue>Raised when the value changes.
ValuesChangedEventCallback<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.