File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,10 @@ The following hooks are available (along with the arguments that are passed):
484
484
Adding a Stimulus Controller to your Component Root Element
485
485
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
486
486
487
+ .. versionadded: 2.7
488
+
489
+ The ``add()`` method was introduced in TwigComponents 2.7.
490
+
487
491
To add a custom Stimulus controller to your root component element:
488
492
489
493
.. code-block :: twig
Original file line number Diff line number Diff line change @@ -590,6 +590,10 @@ Set an attribute's value to ``null`` to exclude the value when rendering:
590
590
{# renders as: #}
591
591
<input type="text" value="" autofocus/>
592
592
593
+ .. versionadded: 2.7
594
+
595
+ The ``add()`` method was introduced in TwigComponents 2.7.
596
+
593
597
To add a custom Stimulus controller to your root component element:
594
598
595
599
.. code-block :: twig
You can’t perform that action at this time.
0 commit comments