murph-doc/docs/utils/form/collection.md

15 lines
986 B
Markdown
Raw Normal View History

2023-10-11 23:35:37 +02:00
# Collection
2023-10-11 23:30:42 +02:00
When you need to manage a collection in a form, you can use `App\Core\Form\Type\CollectionType` with these options:
| Option | Type | Default | Description |
| ------ | ---- | ------- | ----------- |
| `collection_name` | `string` | `null` | Unique name of the collection |
| `label_add` | `string` | `Add` | Unique name of the collection |
| `label_delete` | `string` | `Delete` | Unique name of the collection |
| `template_before_item` | `string` | `null` | A template included before an existing itam of the collection |
| `template_after_item` | `string` | `null` | A template included after an existing itam of the collection |
...and and all options of a symfony collection type.