EasyAdmin Array Field
This field displays the contents of a Doctrine property of type array
and it
allows to add new elements dynamically using JavaScript.
In form pages (edit and new) it looks like this:
![Default style of EasyAdmin array field](/doc/bundles/EasyAdminBundle/4.x/field-array.png)
Basic Information
- PHP Class:
EasyCorp
\Bundle \EasyAdminBundle \Field \ArrayField - Doctrine DBAL Type used to store this value:
array
,simple_array
orjson_array
- Symfony Form Type used to render the field: CollectionType
Rendered as:
1 2 3 4
<!-- when loading the page this is transformed into a dynamic collection via JavaScript --> <input type="text" value="..."> <input type="text" value="..."> <!-- ... -->
Options
This field does not define any custom option.
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0
license.