Blazorise Select API

Explore the Blazorise Select API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Select documentation.

API

Parameters

Select

ParameterDefaultType
AriaDescribedBy—string

Specifies the aria-describedby attribute value.
When set, this value is rendered as-is and overrides help and validation message ids generated by Field and Validation.
AriaInvalid—string

Specifies the aria-invalid attribute value.
When set, this value is rendered as-is and overrides the validation-derived aria-invalid state.
AriaLabelledBy—string

Specifies the aria-labelledby attribute value.
When set, this value is rendered as-is. Some non-labelable controls can otherwise derive it automatically from a parent FieldLabel or FieldsLabel.
AriaRequiredfalsebool

Specifies the aria-required attribute value.
When set, this value overrides the required-field state resolved from the parent Validation.
Autofocusfalsebool

Set's the focus to the component after the rendering is done.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this Select.
Disabledfalsebool

Add the disabled boolean attribute on an input to prevent user interactions and make it appear lighter.
FeedbacknullRenderFragment

Placeholder for validation messages.
Loadingfalsebool

Specifies loading property.
MaxVisibleItemsnullint?

Specifies how many options should be shown at once.
Multiplefalsebool

Specifies that multiple items can be selected.
ReadOnlyfalsebool

Add the readonly boolean attribute on an input to prevent modification of the input’s value.
SizeDefaultSize?

Sets the size of the input control.
When omitted, uses the parent Addons size, then the theme input size, then Size.Default.
TabIndexnullint?

If defined, indicates that its element can be focused and can participates in sequential keyboard navigation.
ValuenullTValue

Specifies the value inside the input field.
ValueExpressionnullExpression<Func<TValue>>

Specifies an expression that identifies the input value.

SelectItem

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SelectItem.
Disabledfalsebool

Disable the item from mouse click.
Hiddenfalsebool

Hide the item from the list so it can be used as a placeholder.
ValuenullTValue

Specifies the item value.

SelectGroup

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SelectGroup.
Label—string

Specifies the group label.

Events

Select

EventType
BlurEventCallback<FocusEventArgs>

The blur event fires when an element has lost focus.
CustomValidationValueFunc<TValue>

Used to provide custom validation value on which the validation will be processed with the Validator handler.
Should be used carefully as it's only meant for some special cases when input is used in a wrapper component, like Autocomplete or SelectList.
FocusInEventCallback<FocusEventArgs>

Notifies when the input box gains focus.
FocusOutEventCallback<FocusEventArgs>

Notifies when the input box loses focus.
KeyDownEventCallback<KeyboardEventArgs>

Notifies when a key is pressed down while the control has focus.
KeyPressEventCallback<KeyboardEventArgs>

Notifies when a key is pressed while the control has focus.
KeyUpEventCallback<KeyboardEventArgs>

Notifies when a key is released while the control has focus.
OnFocusEventCallback<FocusEventArgs>

Notifies when the input box gains or loses focus.
ValueChangedEventCallback<TValue>

Occurs after value has changed.

Methods

Select

MethodReturnParameters
AddSelectItemvoidISelectItem selectItem

Notifies the ISelectItem that it has been initialized.
ContainsValueboolobject value

Indicates if Select contains the provided item value.
RemoveSelectItemvoidISelectItem selectItem

Notifies the ISelectItem that it has been removed.
FocusTaskbool scrollToElement

Sets the focus on the underline element.
RevalidateTask—

Forces the Validation (if any is used) to re-validate with the new custom or internal value.

SelectItem

MethodReturnParameters
CompareToboolobject value

Checks if the value is equal to the item value.