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

Commite66095e

Browse files
committed
Tweak
1 parent0e1fc2f commite66095e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎form/form_collections.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ functionality with #"diff-a1398eca27c6d36f7c434149d7f582cf8633c231123636c6ac43eb1642989dd9-304-304-0" data-selected="false" role="gridcell" tabindex="-1" valign="top">304
304
})
305305
});
306306
307-
The ``data-prototype`` HTML contains the tag's ``text`` input element with a name of
308-
``task[tags][__name__][name]`` and id of ``task_tags___name___name``. The ``__name__``
309-
part is a "placeholder", which is replaced by a unique, incrementing number
310-
(e.g. ``task[tags][3][name]``).
307+
The ``addFormToCollection()`` function's job will be to use the ``data-prototype``
308+
attribute to dynamically add a new form when this link is clicked. The ``data-prototype``
309+
HTML contains the tag's ``text`` input element with a name of ``task[tags][__name__][name]``
310+
and id of ``task_tags___name___name``. The ``__name__`` is a placeholder, which
311+
you'll replace with a unique, incrementing number (e.g. ``task[tags][3][name]``):
311312

312313
..code-block::javascript
313314

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp