Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5355d8b

Browse filesBrowse files
committed
[Form] Document CollectionType's prototype_data
1 parent 34f8fdf commit 5355d8b
Copy full SHA for 5355d8b

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎reference/forms/types/collection.rst

Copy file name to clipboardExpand all lines: reference/forms/types/collection.rst
+9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.