Class FormGroup
Inheritance
Namespace: Syncfusion.Blazor.DataForm
Assembly: Syncfusion.Blazor.dll
Syntax
public class FormGroup : OwningComponentBase, IFormItems
Constructors
FormGroup()
Declaration
public FormGroup()
Properties
ColumnCount
Gets or sets the count of columns in form group grid layout.
Declaration
public int ColumnCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer representing the count of columns in a form group layout. |
Remarks
The ColumnCount property specifies the number of columns in a form layout. It is typically used in UI design to control the layout structure. A higher value will result in more columns and a more complex layout.
ColumnSpacing
Gets or sets the spacing between columns in a form group grid layout.
Declaration
public string ColumnSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value that specifies the spacing between columns in a form group grid layout of the form. |
Remarks
The spacing between columns, expressed in a CSS-compatible unit (e.g., pixels, em, rem). Use this property to control the horizontal spacing between columns in the form layout. Adjusting this property can impact the overall visual appearance of the form.
ColumnSpan
Gets or sets the number of columns spanned by the cell.
Declaration
public int ColumnSpan { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer representing the number of columns spanned by the cell. |
Remarks
The ColumnSpan property determines how many columns in a layout an element should occupy. Setting this property to a value greater than 1 will cause the element to span multiple columns, allowing for more flexible layout options. Use this property to control the horizontal span of a table cell within a table.
CssClass
Gets or sets one or more CSS classes that can be used to customize the appearance of a SfDataForm component field group.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accept the System.String value. |
Remarks
One or more CSS classes to customize the appearance of the form field group, such as by changing its colors, fonts, sizes, or other visual aspects.
The default value is String.Empty
.
ID
Gets or sets the ID of the FormGroup component group field.
Declaration
public string ID { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string value that specifies the ID of the form field. |
Remarks
The ID property is typically used to uniquely identify an object within a application. It should be unique and immutable once set. When creating or modifying an object, ensure that the ID is unique and meaningful for efficient object management and retrieval.
LabelText
Gets or sets the label text for a FormGroup component field group.
Declaration
public string LabelText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the label text associated with the form group heading. |
Remarks
The LabelText property allows you to specify the text that serves as a label for a form group. Label text provides a descriptive title or caption for the field group, helping users understand the purpose of the group. It is important for accessibility and providing a clear user experience.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitialized()
Declaration
protected override void OnInitialized()