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.
Field props (from FieldBase)
Labelstring? (computed)The visible label. Defaults to the model property's [Display(Name)], or its name.
HideLabelbool = falseKeeps the label for screen readers but doesn't show it, as in a toolbar or a one-field newsletter form. Checkboxes and switches show their label beside the box, so this doesn't apply.
Hintstring?Help text shown under the field and linked to it for screen readers.
Requiredbool? (computed)Whether a value is required. Defaults to whether the property has [Required].
Disabledbool = falseDisables the field. Disabled fields are not posted with the form.
SizeControlSize = ControlSize.MdHeight, shared with buttons. Defaults to ControlSize.Md.
Classstring?Classes for the field's outer wrapper (label, control, hint and error).
Stylestring?Inline style for the field's outer wrapper, after its generated custom properties.
VisibleFromBreakpoint?Shows the field only from this breakpoint up.
Margin on all sides, in spacing steps (-16 to 16; one step = 4px).
Width of the whole field (label, control, hint).
Minimum width of the whole field.
Maximum width of the whole field.
Growbool = falseWhether to grow into free space inside a Stack, Row or Column: <TextField Grow />.
Shrinkbool = trueWhether to shrink when space is short inside a Stack, Row or Column. Defaults to true.
Starting size inside a Stack, before growing or shrinking.
Alignment across the parent's direction, overriding the parent's Align for this field only.
Events (0)
No events.