Class FormItem
Defines the FormItem component.
Inheritance
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class FormItem : ComponentBase, IFormItem, IFormItemBase, IDisposable
Constructors
FormItem()
Declaration
public FormItem()
Properties
Class
Defines the class that will be added to the topmost element of the form item.
Declaration
public string Class { get; set; }
Property Value
System.String
|
Implements
ColSpan
Defines the col span of the grid css layout of the form.
Declaration
public int ColSpan { get; set; }
Property Value
System.Int32
|
Implements
EditorType
Defines the editor used for the given field. If not provided, a default editor will be used based on the field data type.
Declaration
public Nullable<FormEditorType> EditorType { get; set; }
Property Value
System.Nullable<FormEditorType>
|
Implements
Enabled
Defines whether the form item should be enabled. Default value is true.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
Implements
Field
Defines the name of the field of the form item.
Declaration
public string Field { get; set; }
Property Value
System.String
|
Implements
FieldType
Defines the field type of the item if it cannot be taken with reflection.
Declaration
public Type FieldType { get; set; }
Property Value
System.Type
|
Implements
Hint
Defines the hint displayed below the form editor, that gives more instruction to the user. If the field is invalid, error message is displayed instead of the hint.
Declaration
public string Hint { get; set; }
Property Value
System.String
|
Implements
Id
Defines the id of the form editor that will be rendered. Useful for associating the label.
Declaration
public string Id { get; set; }
Property Value
System.String
|
Implements
LabelText
Defines the label of the item. Takes precedence over the DisplayAttribute of the property.
Declaration
public string LabelText { get; set; }
Property Value
System.String
|
Implements
Template
Defines the template of the form item. No label, form component or validation elements will be rendered by the form.
Declaration
public RenderFragment Template { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
Implements
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
Dispose()
Declaration
public void Dispose()
OnInitialized()
Declaration
protected override void OnInitialized()
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Microsoft.AspNetCore.Components.ParameterView
parameters
|
Returns
System.Threading.Tasks.Task
|
Explicit Interface Implementations
IFormItem.IsAutoGenerated
Declaration
bool IFormItem.IsAutoGenerated { get; set; }
Returns
System.Boolean
|
Implements
IFormItemBase.FormContainer
Declaration
IFormContainer IFormItemBase.FormContainer { get; set; }
Returns
Telerik.Blazor.Components.Form.IFormContainer
|