Skip to content

Commit

Permalink
[Form] Document CollectionType's prototype_data
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilden authored and HeahDude committed Apr 14, 2016
1 parent 5726c9b commit e18dc1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ photos).
| | - `entry_options`_ |
| | - `entry_type`_ |
| | - `prototype`_ |
| | - `prototype_data`_ |
| | - `prototype_name`_ |
+-------------+-----------------------------------------------------------------------------+
| Inherited | - `by_reference`_ |
Expand Down Expand Up @@ -363,6 +364,14 @@ rendering your form, having the entire "form row" may be easier for you.
For details on how to actually use this option, see the above example as
well as :ref:`cookbook-form-collections-new-prototype`.

prototype_data
~~~~~~~~~~~~~~

**type**: ``mixed`` **default**: ``null``

Allows you to specify data for the prototype. Each new row added will initially
contain the data set by this option.

prototype_name
~~~~~~~~~~~~~~

Expand Down

0 comments on commit e18dc1f

Please sign in to comment.