RayCraftDocs
v1.0.3 raycraft.dev
On this page

DropDownList

Free

A combobox for very long lists. Only the options in view are drawn, so 100,000 entries open at once; typing narrows the list.

Example

DropDownList control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
ItemHeightint
ItemsIEnumerable<TItem>The options to choose from.
ItemTextFunc<TItem, string>Converts an item to its display text (defaults to ToString()).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
OptionTemplateRenderFragment<TItem>
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
ValueTItemCurrent value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<TItem>Raised when the value changes.

Package

DropDownList is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.