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.
Declaration
[Parameter]
public string Class { get; set; }
Property Value
Implements
ColSpan
Defines the col span of the grid css layout of the form.
Declaration
[Parameter]
public int ColSpan { get; set; }
Property Value
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
[Parameter]
public FormEditorType? EditorType { get; set; }
Property Value
Implements
Enabled
Defines whether the form item should be enabled. Default value is true.
Declaration
[Parameter]
public bool Enabled { get; set; }
Property Value
Implements
Field
Defines the name of the field of the form item.
Declaration
[Parameter]
public string Field { get; set; }
Property Value
Implements
FieldType
Defines the field type of the item if it cannot be taken with reflection.
Declaration
[Parameter]
public Type FieldType { get; set; }
Property Value
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
[Parameter]
public string Hint { get; set; }
Property Value
Implements
Id
Defines the id of the form editor that will be rendered. Useful for associating the label.
Declaration
[Parameter]
public string Id { get; set; }
Property Value
Implements
LabelText
Defines the label of the item. Takes precedence over the DisplayAttribute of the property.
Declaration
[Parameter]
public string LabelText { get; set; }
Property Value
Implements
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