EnumInput

This documentation provides a comprehensive reference for the EnumInput component, guiding you through its configuration options.
Demos

Screenshot #

Blazor EnumInput Component

Parameters #

Name Type Default Required Description Added Version
AdditionalAttributes Dictionary<string, object>? null Gets or sets additional attributes that will be applied to the component. 3.5.0
Class string? null Gets or sets the CSS class name(s) to apply to the component. 3.5.0
Disabled bool False Gets or sets whether the enum input is disabled. When true, users cannot change its selection. 3.5.0
Id string? null Gets or sets the ID. If not set, a unique ID will be generated. 3.5.0
Size EnumInputSize None Gets or sets the Bootstrap size of the enum select input. 3.5.0
Style string? null Gets or sets the CSS style string that defines the inline styles for the component. 3.5.0
Text string null Gets or sets the display text of the selected enum value. 3.5.0
TextExpression Expression<Func<string>> null Gets or sets the expression that identifies the bound value for validation and EditContext notifications. 3.5.0
Value int 0 Gets or sets the numeric value of the selected enum member. 3.5.0
ValueExpression Expression<Func<int>> null Gets or sets the expression that identifies the bound value for validation and EditContext notifications. 3.5.0

Methods #

Name Return type Description Added Version
Disable() Void Disables the enum input so users cannot change its selection. 3.5.0
Enable() Void Enables the enum input so users can change its selection. 3.5.0

Events #

Name Return Type Description Added Version
TextChanged EventCallback<string> Fires whenever selection changes the display text of the selected enum value. 3.5.0
ValueChanged EventCallback<int> Fires whenever selection changes the numeric value of the selected enum member. 3.5.0

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.