Skip to content

Commit 6fad96d

Browse files
committed
docs: remove oldest versionadded
1 parent 61819ae commit 6fad96d

File tree

2 files changed

+1
-50
lines changed

2 files changed

+1
-50
lines changed

src/Autocomplete/doc/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,6 @@ likely need to create your own :ref:`custom autocomplete endpoint <custom-autoco
418418
Customizing the AJAX URL/Route
419419
------------------------------
420420

421-
.. versionadded:: 2.7
422-
423-
The ability to specify the route was added in Twig Components 2.7.
424-
425421
The default route for the Ajax calls used by the Autocomplete component is ``/autocomplete/{alias}/``.
426422
Sometimes it may be useful to customize this URL - e.g. so that the URL lives
427423
under a specific firewall.

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,6 @@ If you're building a form (:ref:`more on forms later <forms>`),
407407
instead of adding ``data-model`` to every field, you can instead
408408
rely on the ``name`` attribute.
409409

410-
.. versionadded:: 2.3
411-
412-
The ``data-model`` attribute on the ``form`` is required since version 2.3.
413-
414410
To activate this, you must add a ``data-model`` attribute to
415411
the ``<form>`` element:
416412

@@ -549,10 +545,6 @@ changed, added or removed::
549545
Checkboxes, Select Elements Radios & Arrays
550546
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
551547

552-
.. versionadded:: 2.8
553-
554-
The ability to use checkboxes to set boolean values was added in LiveComponent 2.8.
555-
556548
Checkboxes can be used to set a boolean or an array of strings::
557549

558550
#[AsLiveComponent]
@@ -606,10 +598,6 @@ single value or an array of values::
606598
LiveProp Date Formats
607599
~~~~~~~~~~~~~~~~~~~~~
608600

609-
.. versionadded:: 2.8
610-
611-
The ``format`` option was introduced in Live Components 2.8.
612-
613601
If you have a writable ``LiveProp`` that is some sort of ``DateTime`` instance,
614602
you can control the format of the model on the frontend with the ``format``
615603
option::
@@ -717,10 +705,6 @@ make this work:
717705
Hydrating with the Serializer
718706
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
719707

720-
.. versionadded:: 2.8
721-
722-
The ``useSerializerForHydration`` option was added in LiveComponent 2.8.
723-
724708
To hydrate/dehydrate through Symfony's serializer, use the ``useSerializerForHydration``
725709
option::
726710

@@ -1009,10 +993,6 @@ changes until loading has taken longer than a certain amount of time:
1009993
Targeting Loading for a Specific Action
1010994
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1011995

1012-
.. versionadded:: 2.5
1013-
1014-
The ``action()`` modifier was introduced in Live Components 2.5.
1015-
1016996
To only toggle the loading behavior when a specific action is triggered,
1017997
use the ``action()`` modifier with the name of the action - e.g. ``saveForm()``:
1018998

@@ -1026,10 +1006,6 @@ use the ``action()`` modifier with the name of the action - e.g. ``saveForm()``:
10261006
Targeting Loading When a Specific Model Changes
10271007
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10281008

1029-
.. versionadded:: 2.5
1030-
1031-
The ``model()`` modifier was introduced in Live Components 2.5.
1032-
10331009
You can also toggle the loading behavior only if a specific model value
10341010
was just changed using the ``model()`` modifier:
10351011

@@ -1051,7 +1027,7 @@ Actions
10511027

10521028
Live components require a single "default action" that is used to
10531029
re-render it. By default, this is an empty ``__invoke()`` method and can
1054-
be added with the ``DefaultActionTrait``.
1030+
be added with the ``DefaultActionTrait``.
10551031

10561032
Live components __are__ actually Symfony controllers so you can add
10571033
controller attributes (i.e. ``#[IsGranted]``) to either the entire class
@@ -1897,10 +1873,6 @@ When the user clicks ``removeComment()``, a similar process happens.
18971873
Using LiveCollectionType
18981874
~~~~~~~~~~~~~~~~~~~~~~~~
18991875

1900-
.. versionadded:: 2.2
1901-
1902-
The ``LiveCollectionType`` and the ``LiveCollectionTrait`` was added in LiveComponent 2.2.
1903-
19041876
The ``LiveCollectionType`` uses the same method described above, but in
19051877
a generic way, so it needs even less code. This form type adds an 'Add'
19061878
and a 'Delete' button for each row by default, which work out of the box
@@ -2697,10 +2669,6 @@ validated. To validate it, you have to set up a `PostMount hook`_::
26972669
Communication Between Components: Emitting Events
26982670
-------------------------------------------------
26992671

2700-
.. versionadded:: 2.8
2701-
2702-
The ability to emit events was added in Live Components 2.8.
2703-
27042672
Events allow you to communicate between any two components that live
27052673
on your page.
27062674

@@ -2975,11 +2943,6 @@ Suppose the user updates the ``listName`` model and the parent component
29752943
re-renders. In this case, the child component will *not* re-render by design:
29762944
each component lives in its own universe.
29772945

2978-
.. versionadded:: 2.8
2979-
2980-
The ``updateFromParent`` option was added in Live Components 2.8. Previously,
2981-
a child would re-render when *any* props passed into it changed.
2982-
29832946
However, if the user adds a *new* todo item then we *do* want the ``TodoFooter``
29842947
child component to re-render: using the new ``count`` value. To trigger this,
29852948
in the ``TodoFooter`` component, add the ``updateFromParent`` option::
@@ -3496,10 +3459,6 @@ When a component re-renders, the new HTML is "morphed" onto the existing
34963459
elements on the page. For example, if the re-render includes a new ``class``
34973460
on an existing element, that class will be added to that element.
34983461

3499-
.. versionadded:: 2.8
3500-
3501-
The smart re-render algorithm was introduced in LiveComponent 2.8.
3502-
35033462
The rendering system is also smart enough to know when an element was changed
35043463
by something *outside* of the LiveComponents system: e.g. some JavaScript
35053464
that added a class to an element. In this case, the class will be preserved
@@ -3574,10 +3533,6 @@ In this case, any changes to the ``<select>`` element attributes will still be
35743533
Define another route for your Component
35753534
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35763535

3577-
.. versionadded:: 2.7
3578-
3579-
The ``route`` option was added in LiveComponents 2.7.
3580-
35813536
The default route for live components is ``/components/{_live_component}/{_live_action}``.
35823537
Sometimes it may be useful to customize this URL - e.g. so that the component lives
35833538
under a specific firewall.

0 commit comments

Comments
 (0)