【文件属性】:
文件名称:collection-type-manager:Javascript库可轻松与Symfony CollectionType字段进行交互
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-01 15:37:25
JavaScript
集合类型管理器
Javascript库可轻松与交互
安装
npm i collection-type-manager
import CollectionTypeManager from "collection-type-manager" ;
用法
在本文档中,我们将使用带有questions字段的QuizType表单示例作为CollectionType但是可以根据您的逻辑进行随意调整。
基本配置
在QuizType中
首先,将allow_add和allow_delete设置为true。
$ builder
-> add ( 'questions' , CollectionType ::class, [
'entry_type' => QuestionType ::class,
'allow_add' => true ,
'allow_dele
【文件预览】:
collection-type-manager-master
----.gitignore(32B)
----README.md(10KB)
----tests()
--------EventDispatcher.test.js(1KB)
--------Subscriber.test.js(2KB)
----package.json(1KB)
----dist()
--------Subscriber.js(3KB)
--------cdn()
--------SortableEventAdapter.js(3KB)
--------EventDispatcher.js(2KB)
--------ChildCollection.js(805B)
--------CollectionTypeManager.js(7KB)
----License(1KB)
----src()
--------Subscriber.js(1KB)
--------SortableEventAdapter.js(485B)
--------EventDispatcher.js(710B)
--------ChildCollection.js(699B)
--------CollectionTypeManager.js(7KB)
----babel.config.js(364B)