FormFieldContext Class

Represents the context of the form field.

Inheritance

Object

FormFieldContext

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class FormFieldContext : IFormFieldContext

Constructors

FormFieldContextLink to this section

Represents the context of the form field.

Declaration
public FormFieldContext()

Properties

AllowFloatingLabelLink to this section

Gets or sets a value indicating whether the label is floating or fixed on top.

Declaration
public bool AllowFloatingLabel { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether the label is floating or fixed on top.

DisabledChangedLink to this section

Notifies the form field that the disabled state of the component has changed.

Declaration
public Action<bool> DisabledChanged { get; set; }
Property Value
Type Description
Action<bool>Notifies the form field that the disabled state of the component has changed.

LabelIdLink to this section

Gets or sets the id of the form field label.

Declaration
public string LabelId { get; set; }
Property Value
Type Description
stringGets or sets the id of the form field label.

LabelTargetLink to this section

Gets the id of the element the form field label points to, registered by the wrapped component.

Declaration
public string LabelTarget { get; }
Property Value
Type Description
stringGets the id of the element the form field label points to, registered by the wrapped component.

LabelTargetChangedLink to this section

Notifies the form field that the label target has changed.

Declaration
public Action<string> LabelTargetChanged { get; set; }
Property Value
Type Description
Action<string>Notifies the form field that the label target has changed.

Methods

GetLabelIdLink to this section

Declaration
public string GetLabelId(object owner)
Parameters
Type Name Description
object owner
Returns
Type Description
string

SetLabelTargetLink to this section

Declaration
public void SetLabelTarget(object owner, string id)
Parameters
Type Name Description
object owner
string id
An error has occurred. This app may no longer respond until reloaded. Reload 🗙