Skip to content

Commit 5355d8b

Browse files
committed
[Form] Document CollectionType's prototype_data
1 parent 34f8fdf commit 5355d8b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/forms/types/collection.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ forms, which is useful when creating forms that expose one-to-many relationships
1818
| | - `delete_empty`_ |
1919
| | - `options`_ |
2020
| | - `prototype`_ |
21+
| | - `prototype_data`_ |
2122
| | - `prototype_name`_ |
2223
| | - `type`_ |
2324
+-------------+-----------------------------------------------------------------------------+
@@ -330,6 +331,14 @@ rendering your form, having the entire "form row" may be easier for you.
330331
For details on how to actually use this option, see the above example as well
331332
as :ref:`cookbook-form-collections-new-prototype`.
332333

334+
prototype_data
335+
~~~~~~~~~~~~~~
336+
337+
**type**: ``mixed`` **default**: ``null``
338+
339+
Allows you to specify data for the prototype. Each new row added will initially
340+
contain the data set by this option.
341+
333342
prototype_name
334343
~~~~~~~~~~~~~~
335344

0 commit comments

Comments
 (0)