Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commita77a4b5

Browse files
kgildenwouterj
authored andcommitted
[Form] Document CollectionType'sprototype_data
1 parent282602e commita77a4b5

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`_|
@@ -363,6 +364,14 @@ rendering your form, having the entire "form row" may be easier for you.
363364
For details on how to actually use this option, see the above example as
364365
well as:ref:`cookbook-form-collections-new-prototype`.
365366

367+
prototype_data
368+
~~~~~~~~~~~~~~
369+
370+
**type**: ``mixed`` **default**: ``null``
371+
372+
Allows you to specify data for the prototype. Each new row added will initially
373+
contain the data set by this option.
374+
366375
prototype_name
367376
~~~~~~~~~~~~~~
368377

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp