File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/LiveComponent/src/Resources/doc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1358,8 +1358,8 @@ collection type, rendering every item in a table row:
1358
1358
{{ block('form_widget') }}
1359
1359
</tbody>
1360
1360
</table>
1361
- {%- if skip_add_button|default(false) is same as false and button_add is defined and not button_add.rendered -%}
1362
- {{ form_widget(button_add, { label: '+ Add Item', class: 'btn btn-outline-primary' }) }}
1361
+ {%- if skip_add_button|default(false) is same as( false) and button_add is defined and not button_add.rendered -%}
1362
+ {{ form_widget(button_add, { label: '+ Add Item', attr: { class: 'btn btn-outline-primary' } }) }}
1363
1363
{%- endif -%}
1364
1364
{%- endblock -%}
1365
1365
@@ -1392,7 +1392,7 @@ then render it manually after:
1392
1392
</tbody>
1393
1393
</table>
1394
1394
1395
- {{ form_widget(form.todoItems.vars.button_add, { label: '+ Add Item', class: 'btn btn-outline-primary' }) }}
1395
+ {{ form_widget(form.todoItems.vars.button_add, { label: '+ Add Item', attr: { class: 'btn btn-outline-primary' } }) }}
1396
1396
1397
1397
Modifying Nested Object Properties with the "exposed" Option
1398
1398
------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments