Skip to content

Commit

Permalink
minor #431 [LiveComponent] Fix attribute usage in docs (1ed)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

[LiveComponent] Fix attribute usage in docs

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Tickets       | -
| License       | MIT

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Features and deprecations must be submitted against branch main.
-->

Commits
-------

b1b8f72 [LiveComponent] Fix attribute usage in docs
  • Loading branch information
jameswebapp committed Aug 24, 2022
2 parents 3e2b86d + c64dacf commit 69ea801
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 69ea801

Please sign in to comment.