跳到内容

EasyAdmin 数组字段

编辑此页

此字段显示 Doctrine array 类型属性的内容,并允许使用 JavaScript 动态添加新元素。

表单页面 (编辑和新建) 中,它看起来像这样

Default style of EasyAdmin array field

基本信息

  • PHP 类: EasyCorp\Bundle\EasyAdminBundle\Field\ArrayField
  • Doctrine DBAL 类型 用于存储此值: array, simple_arrayjson_array
  • Symfony 表单类型 用于渲染字段: CollectionType
  • 渲染为:

    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="...">
    <!-- ... -->

选项

此字段未定义任何自定义选项。

这项工作,包括代码示例,根据 Creative Commons BY-SA 3.0 许可协议获得许可。
目录
    版本