You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/form/columns.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,15 @@ The Form component for Blazor allows you to add multiple columns by using the `C
15
15
16
16
>caption Add columns to a Form with Automatically generated fields
17
17
18
-
You can set the `Columns` parameter when the Form component automatically generates the editors. The form will spread the editors evenly across the columns. It will calculate it using this formula: `propertiesInModelCount / Columns`.
18
+
You can set the `Columns` parameter when [`<FormItemsTemplate>`](slug:form-formitems-formitemstemplate) is not used and the Form manages its layout. The Form will spread the editors evenly across the columns.
19
+
20
+
When using `Columns`, you can also define arbitrary space between the rows with the `RowSpacing` parameter.
| Parameter | Type and Default Value| Description |
27
27
| --- | --- | --- |
28
28
|`LabelText`|`string`| The label for the entire group rendered as a `<legend>` element in a `<fieldset>`. |
29
29
|`Columns`|`int`| The number of columns in the group. |
30
-
|`ColumnSpacing`|`string`| The horizontal space between the columns in the group. |
31
-
|`RowSpacing`|`string`| The vertical space between the fields in the group. |
30
+
|`ColumnSpacing`|`string`(`"16px"`) | The horizontal space between the columns in the group. |
31
+
|`RowSpacing`|`string`| The vertical space between the fields in the group. The default value is zero, but there is a default top margin for Form items. This parameter has effect only when `Columns` is set. |
32
32
33
33
## Example - Organize FormItems into Groups
34
34
@@ -39,46 +39,34 @@ You can organize some FormItems into logical groups. You can configure the label
Copy file name to clipboardExpand all lines: components/form/overview.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -203,13 +203,13 @@ You can customize the editors further through the [form items](slug:form-formite
203
203
204
204
The [Blazor Form](https://demos.telerik.com/blazor-ui/form/overview) exposes multiple parameters that allow you to customize its layout. Besides the parameters below, the Form component also allows you to [define a completely custom layout with HTML markup and Razor components](slug:form-formitems-formitemstemplate).
205
205
206
-
| Parameter | Type and Defaultvalue | Description |
206
+
| Parameter | Type and Default value | Description |
|`ButtonsLayout`|`FormButtonsLayout` enum <br /> (`Start`) | The position and width of all Form buttons. See [Form Buttons](slug:form-formitems-buttons). |
209
209
|`Columns`|`int`| The number of columns in the Form. See the [Columns](slug:form-columns) article for more information |
210
-
|`ColumnSpacing`|`string`| The amout of horizontal space between the columns. See the [Columns](slug:form-columns) article for more information. |
210
+
|`ColumnSpacing`|`string`(`"32px"`) | The amout of horizontal space between the columns. See the [Columns](slug:form-columns) article for more information. |
211
211
|`Orientation`|`FormOrientation` enum <br /> (`Vertical`) | The position of each label with regard to its editor. See [Orientation](slug:form-orientation) for more information. |
212
-
|`RowSpacing`|`string`| The amout of vertical space between the rows. |
212
+
|`RowSpacing`|`string`| The amout of vertical space between the rows. The default value is zero, but there is a default top margin for Form items. This parameter has effect only when `Columns` is set. |
0 commit comments