From 6365f3a3a9539605271035c45e5ad8182bebdab3 Mon Sep 17 00:00:00 2001 From: Kristen Gilden Date: Fri, 24 Oct 2014 21:57:29 +0300 Subject: [PATCH] [Form] Document CollectionType's `prototype_data` --- reference/forms/types/collection.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index 4e880817d06..097be30cce9 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -20,6 +20,7 @@ photos). | | - `entry_options`_ | | | - `entry_type`_ | | | - `prototype`_ | +| | - `prototype_data`_ | | | - `prototype_name`_ | +-------------+-----------------------------------------------------------------------------+ | Inherited | - `by_reference`_ | @@ -354,6 +355,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 ~~~~~~~~~~~~~~