Skip to content

Commit b1b8f72

Browse files
committed
[LiveComponent] Fix attribute usage in docs
1 parent 73c6569 commit b1b8f72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LiveComponent/src/Resources/doc/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,8 @@ collection type, rendering every item in a table row:
13581358
{{ block('form_widget') }}
13591359
</tbody>
13601360
</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' } }) }}
13631363
{%- endif -%}
13641364
{%- endblock -%}
13651365
@@ -1392,7 +1392,7 @@ then render it manually after:
13921392
</tbody>
13931393
</table>
13941394
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' } }) }}
13961396
13971397
Modifying Nested Object Properties with the "exposed" Option
13981398
------------------------------------------------------------

0 commit comments

Comments
 (0)