Skip to content

Commit 6365f3a

Browse files
committed
[Form] Document CollectionType's prototype_data
1 parent d7ae2a0 commit 6365f3a

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
@@ -20,6 +20,7 @@ photos).
2020
| | - `entry_options`_ |
2121
| | - `entry_type`_ |
2222
| | - `prototype`_ |
23+
| | - `prototype_data`_ |
2324
| | - `prototype_name`_ |
2425
+-------------+-----------------------------------------------------------------------------+
2526
| Inherited | - `by_reference`_ |
@@ -354,6 +355,14 @@ rendering your form, having the entire "form row" may be easier for you.
354355
For details on how to actually use this option, see the above example as
355356
well as :ref:`cookbook-form-collections-new-prototype`.
356357

358+
prototype_data
359+
~~~~~~~~~~~~~~
360+
361+
**type**: ``mixed`` **default**: ``null``
362+
363+
Allows you to specify data for the prototype. Each new row added will initially
364+
contain the data set by this option.
365+
357366
prototype_name
358367
~~~~~~~~~~~~~~
359368

0 commit comments

Comments
 (0)