Class FormLabelPosition
Specifies the available positions for label text within a form.
Inheritance
System.Object
FormLabelPosition
Namespace: Syncfusion.Blazor.DataForm
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class FormLabelPosition : Enum
Remarks
This enumeration is used to control the placement of field labels relative to their associated editors in a Syncfusion DataForm.
Examples
<SfDataForm FormLabelPosition="FormLabelPosition.Top" ... >
</SfDataForm>
Fields
Left
The labels are positioned to the left of their associated form fields, creating a side-by-side layout.
Declaration
public const FormLabelPosition Left
Field Value
Type | Description |
---|---|
FormLabelPosition | FormLabelPosition enumeration value for left-aligned labels. |
Remarks
Use this layout for desktop scenarios where horizontal space is sufficient and readability is prioritized.
Top
The labels are positioned above their associated form fields, creating a vertical layout.
Declaration
public const FormLabelPosition Top
Field Value
Type | Description |
---|---|
FormLabelPosition | FormLabelPosition enumeration value for top-aligned labels. |
Remarks
This layout is useful for mobile devices and narrow screens where horizontal space is limited.