Class FormComponent<T>
- Namespace
- Radzen
- Assembly
- Radzen.Blazor.dll
Class FormComponent. Implements the RadzenComponent Implements the IRadzenFormComponent
public class FormComponent<T> : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
Type Parameters
T
- Inheritance
-
FormComponent<T>
- Implements
- Derived
- Inherited Members
Constructors
FormComponent()
public FormComponent()
- See Also
Fields
_value
The value
protected T _value
Field Value
- T
- See Also
Properties
Change
Gets or sets the change.
[Parameter]
public EventCallback<T> Change { get; set; }
Property Value
- EventCallback<T>
The change.
- See Also
CurrentPlaceholder
Gets the current placeholder. Returns empty string if this component is inside a RadzenFormField.
protected string CurrentPlaceholder { get; }
Property Value
- See Also
Disabled
Gets or sets a value indicating whether this FormComponent<T> is disabled.
[Parameter]
public bool Disabled { get; set; }
Property Value
- bool
true
if disabled; otherwise,false
.
- See Also
EditContext
Gets or sets the edit context.
[CascadingParameter]
public EditContext EditContext { get; set; }
Property Value
- EditContext
The edit context.
- See Also
FieldIdentifier
Gets the field identifier.
public FieldIdentifier FieldIdentifier { get; }
Property Value
- FieldIdentifier
The field identifier.
- See Also
Form
Gets or sets the form.
[CascadingParameter]
public IRadzenForm Form { get; set; }
Property Value
- IRadzenForm
The form.
- See Also
FormFieldContext
Provides support for RadzenFormField integration.
[CascadingParameter]
public IFormFieldContext FormFieldContext { get; set; }
Property Value
- See Also
HasValue
Gets a value indicating whether this instance has value.
public virtual bool HasValue { get; }
Property Value
- bool
true
if this instance has value; otherwise,false
.
- See Also
IsBound
Gets a value indicating whether this instance is bound.
public bool IsBound { get; }
Property Value
- bool
true
if this instance is bound; otherwise,false
.
- See Also
Name
Gets or sets the name.
[Parameter]
public string Name { get; set; }
Property Value
- string
The name.
- See Also
Placeholder
Gets or sets the placeholder.
[Parameter]
public string Placeholder { get; set; }
Property Value
- string
The placeholder.
- See Also
TabIndex
Gets or sets the index of the tab.
[Parameter]
public int TabIndex { get; set; }
Property Value
- int
The index of the tab.
- See Also
Value
Gets or sets the value.
[Parameter]
public virtual T Value { get; set; }
Property Value
- T
The value.
- See Also
ValueChanged
Gets or sets the value changed.
[Parameter]
public EventCallback<T> ValueChanged { get; set; }
Property Value
- EventCallback<T>
The value changed.
- See Also
ValueExpression
Gets or sets the value expression.
[Parameter]
public Expression<Func<T>> ValueExpression { get; set; }
Property Value
- Expression<Func<T>>
The value expression.
- See Also
Methods
Dispose()
Disposes this instance.
public override void Dispose()
- See Also
FocusAsync()
public virtual ValueTask FocusAsync()
Returns
- See Also
GetClassList(string)
Gets the class list.
protected ClassList GetClassList(string className)
Parameters
className
stringName of the class.
Returns
- ClassList
ClassList.
- See Also
GetValue()
Gets the value.
public object GetValue()
Returns
- object
System.Object.
- See Also
OnContextMenu(MouseEventArgs)
Handles the ContextMenu event.
public override Task OnContextMenu(MouseEventArgs args)
Parameters
args
MouseEventArgsThe MouseEventArgs instance containing the event data.
Returns
- Task
Task.
- See Also
SetParametersAsync(ParameterView)
Sets the parameters asynchronous.
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
ParameterViewThe parameters.
Returns
- Task
Task.
- See Also