|
@@ -222,9 +222,21 @@ btn_add and btn_catalogue:
|
|
|
corresponding button. You can also specify a custom translation catalogue
|
|
|
for this label, which defaults to ``SonataAdminBundle``.
|
|
|
|
|
|
+**TIP**: A jQuery event is fired after a row has been added (``sonata-admin-append-form-element``).
|
|
|
+You can listen to this event to trigger custom javascript (eg: add a calendar widget to a newly added date field)
|
|
|
+
|
|
|
+collection
|
|
|
+^^^^^^^^^^
|
|
|
+
|
|
|
+This bundle handle the symfony ``collection`` form type by adding:
|
|
|
+* an ``add`` button if you set the ``allow_add`` option to ``true``.
|
|
|
+* a ``delete`` button if you set the ``allow_delete`` option to ``true``.
|
|
|
+
|
|
|
+**TIP**: A jQuery event is fired after a row has been added (``sonata-admin-append-form-element``).
|
|
|
+You can listen to this event to trigger custom javascript (eg: add a calendar widget to a newly added date field)
|
|
|
+
|
|
|
**TIP**: A jQuery event is fired after a row has been added (``sonata-collection-item-added``)
|
|
|
-or deleted (``sonata-collection-item-deleted``). You can bind to these events to trigger custom
|
|
|
-javascript imported into your templates (eg: add a calendar widget to a newly added date field)
|
|
|
+or deleted (``sonata-collection-item-deleted``). You can listen to these events to trigger custom javascript.
|
|
|
|
|
|
FieldDescription options
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|