Represents the context of the form field.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class FormFieldContext : IFormFieldContextRepresents the context of the form field.
public FormFieldContext()Gets or sets a value indicating whether the label is floating or fixed on top.
public bool AllowFloatingLabel { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether the label is floating or fixed on top. |
Notifies the form field that the disabled state of the component has changed.
public Action<bool> DisabledChanged { get; set; }
| Type | Description |
|---|---|
| Action<bool> | Notifies the form field that the disabled state of the component has changed. |
Gets or sets the id of the form field label.
public string LabelId { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the id of the form field label. |
Gets the id of the element the form field label points to, registered by the wrapped component.
public string LabelTarget { get; }
| Type | Description |
|---|---|
| string | Gets the id of the element the form field label points to, registered by the wrapped component. |
Notifies the form field that the label target has changed.
public Action<string> LabelTargetChanged { get; set; }
| Type | Description |
|---|---|
| Action<string> | Notifies the form field that the label target has changed. |
public string GetLabelId(object owner)
| Type | Name | Description |
|---|---|---|
| object | owner |
| Type | Description |
|---|---|
| string |
public void SetLabelTarget(object owner, string id)
| Type | Name | Description |
|---|---|---|
| object | owner | |
| string | id |