Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Select

A native select, themed where the browser allows.

IzzyBlazor.Select<TValue> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (7)

ReadOnlybool = falseAdded in 0.1.0-alpha.13

Makes 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.

ItemTextFunc<TValue, string>? (computed)

The text for each option. Defaults to the enum value's [Display(Name)] or its string form.

ItemTemplateRenderFragment<TValue>?

Markup for each option, such as an icon, avatar or a second line (class ib-option-hint, hidden in the closed field). In the closed field, text in its own element (a span) ends in an ellipsis when it doesn't fit. Shown where the browser supports the customizable select; elsewhere the option shows ItemText. Keep it non-interactive: options can't hold links or buttons.

Placeholderstring?

A first, empty option such as "Choose a plan". Not selectable again when the field is required.

The 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.