Class MudInputControl
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudInputControl : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudInputControl
- Implements
- Inherited Members
- Extension Methods
Constructors
MudInputControl()
public MudInputControl()
Properties
ChildContent
Child content of component.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
CounterText
The current character counter, displayed below the text field.
[Parameter]
public string? CounterText { get; set; }
Property Value
Disabled
If true, the input element will be disabled.
[Parameter]
public bool Disabled { get; set; }
Property Value
Error
If true, the label will be displayed in an error state.
[Parameter]
public bool Error { get; set; }
Property Value
ErrorId
The ErrorId that will be used by aria-describedby if Error true
[Parameter]
public string? ErrorId { get; set; }
Property Value
ErrorText
The ErrorText that will be displayed if Error true
[Parameter]
public string? ErrorText { get; set; }
Property Value
ForId
If string has value the label "for" attribute will be added.
[Parameter]
public string ForId { get; set; }
Property Value
FullWidth
If true, the input will take up the full width of its container.
[Parameter]
public bool FullWidth { get; set; }
Property Value
HelperClass
protected string HelperClass { get; }
Property Value
HelperContainer
protected string HelperContainer { get; }
Property Value
HelperId
The ID that will be used by aria-describedby if HelperText is provided.
[Parameter]
public string? HelperId { get; set; }
Property Value
HelperText
The HelperText will be displayed below the text field.
[Parameter]
public string? HelperText { get; set; }
Property Value
HelperTextOnFocus
If true, the helper text will only be visible on focus.
[Parameter]
public bool HelperTextOnFocus { get; set; }
Property Value
InputContent
Should be the Input
[Parameter]
public RenderFragment? InputContent { get; set; }
Property Value
Label
If string has value the label text will be displayed in the input, and scaled down at the top if the input has value.
[Parameter]
public string? Label { get; set; }
Property Value
Margin
Will adjust vertical spacing.
[Parameter]
public Margin Margin { get; set; }
Property Value
Required
If true, will apply mud-input-required class to the output div
[Parameter]
public bool Required { get; set; }
Property Value
Variant
Variant can be Text, Filled or Outlined.
[Parameter]
public Variant Variant { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder