Skip to content

Commit 8e5cab3

Browse files
committed
Adding missing versionadded for TwigComponent attributes
From #589 originally.
1 parent 2363995 commit 8e5cab3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ The following hooks are available (along with the arguments that are passed):
484484
Adding a Stimulus Controller to your Component Root Element
485485
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
486486

487+
.. versionadded: 2.7
488+
489+
The ``add()`` method was introduced in TwigComponents 2.7.
490+
487491
To add a custom Stimulus controller to your root component element:
488492

489493
.. code-block:: twig

src/TwigComponent/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,10 @@ Set an attribute's value to ``null`` to exclude the value when rendering:
590590
{# renders as: #}
591591
<input type="text" value="" autofocus/>
592592
593+
.. versionadded: 2.7
594+
595+
The ``add()`` method was introduced in TwigComponents 2.7.
596+
593597
To add a custom Stimulus controller to your root component element:
594598

595599
.. code-block:: twig

0 commit comments

Comments
 (0)