ClassFormItem
Defines the FormItem component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class FormItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IFormItem, IFormItemBase, IDisposable
Inheritance: objectComponentBaseFormItem
Implements:
Inherited Members
Constructors
FormItem()
Declaration
public FormItem()
Properties
Class
Defines the class that will be added to the topmost element of the form item.
ColSpan
Defines the col span of the grid css layout of the form.
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
[Parameter]
public FormEditorType? EditorType { get; set; }
Property Value
Implements
Enabled
Defines whether the form item should be enabled. Default value is true.
Field
Defines the name of the field of the form item.
FieldType
Defines the field type of the item if it cannot be taken with reflection.
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.
Id
Defines the id of the form editor that will be rendered. Useful for associating the label.
LabelText
Defines the label of the item. Takes precedence over the DisplayAttribute of the property.
Template
Defines the template of the form item. No label, form component or validation elements will be rendered by the form.
Declaration
[Parameter]
public RenderFragment Template { get; set; }
Property Value
Implements
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides