Skip to content

Commit

Permalink
Fix code indentation for emit events
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsche committed Nov 30, 2023
1 parent 85231b9 commit 4190cf6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2319,12 +2319,12 @@ There are three ways to emit an event:

1. From Twig:

.. code-block:: html+twig
.. code-block:: html+twig

<button
data-action="live#emit"
data-event="productAdded"
>
<button
data-action="live#emit"
data-event="productAdded"
>

2. From your PHP component via ``ComponentToolsTrait``::

Expand Down

0 comments on commit 4190cf6

Please sign in to comment.