MudRadioGroup<T> API

Pages
Properties
Name Type Default Description
Data
Value
T
null
Validation
Error
bool
False If true, the label will be displayed in an error state.
ErrorId
string
null The ErrorId that will be used by aria-describedby if Error true
ErrorText
string
null The ErrorText that will be displayed if Error true.
For
Expression<Func<T>>
null Specify an expression which returns the model's field for which validation messages should be displayed.
Required
bool
False If true, this form input is required to be filled out.
RequiredError
string
"Required" The error text that will be displayed if the input is not filled out but required.
Validation
object
null A validation func or a validation attribute. Supported types are: Func<T, bool> ... will output the standard error message "Invalid" if false Func<T, string> ... outputs the result as error message, no error if null Func<T, IEnumerable< string >> ... outputs all the returned error messages, no error if empty Func<object, string, IEnumerable< string >> input Form.Model, Full Path of Member ... outputs all the returned error messages, no error if empty Func<T, Task< bool >> ... will output the standard error message "Invalid" if false Func<T, Task< string >> ... outputs the result as error message, no error if null Func<T, Task<IEnumerable< string >>> ... outputs all the returned error messages, no error if empty Func<object, string, Task<IEnumerable< string >>> input Form.Model, Full Path of Member ... outputs all the returned error messages, no error if empty System.ComponentModel.DataAnnotations.ValidationAttribute instances
Behavior
ChildContent
RenderFragment
null
Converter
Converter<T, T>
The generic converter of the component.
Culture
CultureInfo
The culture of the component.
Disabled
bool
False If true, the input will be disabled.
Name
string
"93ad7261-d982-43c9-be80-39017ea3c423"
ReadOnly
bool
False If true, the input will be read-only.
Appearance
InputClass
string
null User class names for the input, separated by space
InputStyle
string
null User style definitions for the input
Common
Class
string
null User class names, separated by space.
Style
string
null User styles, applied on top of the component's own classes and styles.
Tag
object
null Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<string, object>
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.
EventCallbacks
Name Type Description
ValueChanged EventCallback<T>
Methods
Name Parameters Return Description
CheckGenericTypeMatch(object selectItem)
object selectItem
string GetErrorText()
string : Error text/message
Return the validation error text or the conversion error message.
Task ResetAsync()
Task
Reset the value and the validation.
ResetValidation() Reset the validation.
Task Validate()
Task
Cause this component to validate its value.

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

An error has occurred. This application may no longer respond until reloaded. Reload 🗙