-
-
Notifications
You must be signed in to change notification settings - Fork 77
Document fieldset formwidget #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -791,6 +791,7 @@ There are various form widgets included as standard, although it is common for p | |||||
| - [Color picker](#color-picker) | ||||||
| - [Data table](#data-table) | ||||||
| - [Date picker](#date-picker) | ||||||
| - [Fieldset](#fieldset) | ||||||
| - [File upload](#file-upload) | ||||||
| - [Icon picker](#icon-picker) | ||||||
| - [Markdown editor](#markdown-editor) | ||||||
|
|
@@ -1003,6 +1004,36 @@ Option | Description | |||||
| `showWeekNumber` | show week numbers at head of row. Default: `false` | ||||||
| `ignoreTimezone` | store date and time exactly as it is displayed, ignoring the backend specified timezone preference. | ||||||
|
|
||||||
| ### Fieldset | ||||||
|
|
||||||
| `fieldset` - renders a group of fields in a `<fieldset>` tag. | ||||||
|
|
||||||
| > **NOTE:** Contrary to the [nestedform](#nested-form), the fields defined in a fieldset are part of the main form. They are only grouped visually within the `<fieldset>` tag. | ||||||
|
|
||||||
| ```yaml | ||||||
| groupedFields: | ||||||
| type: fieldset | ||||||
| label: Grouped Fields | ||||||
| form: | ||||||
| fields: | ||||||
| name: | ||||||
| label: Your name | ||||||
| address: | ||||||
| label: Your address | ||||||
| phone: | ||||||
| label: Your phone | ||||||
| type: tel | ||||||
| website: | ||||||
| label: Your website URL | ||||||
| type: url | ||||||
| ``` | ||||||
|
|
||||||
| A fieldset provides a way of ***visually*** grouping fields. The form definition does not support tabs or secondary tabs as it is only used to define the fields for grouping purpose. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix grammatical error. The phrase "for grouping purpose" should use the plural form "purposes". 📝 Proposed fix-A fieldset provides a way of ***visually*** grouping fields. The form definition does not support tabs or secondary tabs as it is only used to define the fields for grouping purpose.
+A fieldset provides a way of ***visually*** grouping fields. The form definition does not support tabs or secondary tabs as it is only used to define the fields for grouping purposes.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| Option | Description | ||||||
| ------------- | ------------- | ||||||
| `form` | contains the [form definition](#defining-form-fields) used to define the grouped fields. | ||||||
|
|
||||||
| ### File upload | ||||||
|
|
||||||
| `fileupload` - renders a file uploader for images or regular files. | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjauvin can you add a similar note to the nestedform section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done