Skip to content

[LiveComponent] Fix attribute usage in docs #431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/LiveComponent/src/Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1358,8 +1358,8 @@ collection type, rendering every item in a table row:
{{ block('form_widget') }}
</tbody>
</table>
{%- if skip_add_button|default(false) is same as false and button_add is defined and not button_add.rendered -%}
{{ form_widget(button_add, { label: '+ Add Item', class: 'btn btn-outline-primary' }) }}
{%- if skip_add_button|default(false) is same as(false) and button_add is defined and not button_add.rendered -%}
{{ form_widget(button_add, { label: '+ Add Item', attr: { class: 'btn btn-outline-primary' } }) }}
{%- endif -%}
{%- endblock -%}

Expand Down Expand Up @@ -1392,7 +1392,7 @@ then render it manually after:
</tbody>
</table>

{{ form_widget(form.todoItems.vars.button_add, { label: '+ Add Item', class: 'btn btn-outline-primary' }) }}
{{ form_widget(form.todoItems.vars.button_add, { label: '+ Add Item', attr: { class: 'btn btn-outline-primary' } }) }}

Modifying Nested Object Properties with the "exposed" Option
------------------------------------------------------------
Expand Down