Combobox
IzzyBlazor.Combobox<TValue> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly
and its doc comments.
Properties (12)
ReadOnlybool = falseMakes the field read-only: the chosen text shows in a read-only text field, and the value still posts.
ItemsIEnumerable<TValue>?The options. Not needed for enums, whose values are listed automatically, or with Search.
SearchFunc<string, CancellationToken, Task<IEnumerable<TValue>>>?Finds options for the typed text, for lists too long to send whole. Called with "" to fill the list at first (on every page), and as the user types on interactive pages. Return a short list, such as the first 50 matches.
On static pages, Search fills the list once; searching as you type needs an interactive page.
ItemTextFunc<TValue, string>? (computed)The text for each option, also what's typed to find it and what the field shows once chosen. Defaults to the enum value's [Display(Name)] or its string form. Keep it unique.
ItemTemplateRenderFragment<TValue>?Markup for each option in the list, such as an icon or avatar. The field shows ItemText.
Placeholderstring?Text in the empty field, such as "Search countries". Also the empty option without script.
EmptyTextstring?Shown when nothing matches.
SearchingTextstring?Shown while Search runs.
ToggleLabelstring?The accessible name of the button that opens the list.
@bind-ValueTValueThe value, bound with @bind-Value.
DisplayNamestring?The field's name in validation messages from the input itself, such as a value that can't be parsed.
Events (0)
No events.