@@ -409,10 +409,6 @@ If you're building a form (:ref:`more on forms later <forms>`),
409
409
instead of adding ``data-model `` to every field, you can instead
410
410
rely on the ``name `` attribute.
411
411
412
- .. versionadded :: 2.3
413
-
414
- The ``data-model `` attribute on the ``form `` is required since version 2.3.
415
-
416
412
To activate this, you must add a ``data-model `` attribute to
417
413
the ``<form> `` element:
418
414
@@ -551,10 +547,6 @@ changed, added or removed::
551
547
Checkboxes, Select Elements Radios & Arrays
552
548
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
553
549
554
- .. versionadded :: 2.8
555
-
556
- The ability to use checkboxes to set boolean values was added in LiveComponent 2.8.
557
-
558
550
Checkboxes can be used to set a boolean or an array of strings::
559
551
560
552
#[AsLiveComponent]
@@ -608,10 +600,6 @@ single value or an array of values::
608
600
LiveProp Date Formats
609
601
~~~~~~~~~~~~~~~~~~~~~
610
602
611
- .. versionadded :: 2.8
612
-
613
- The ``format `` option was introduced in Live Components 2.8.
614
-
615
603
If you have a writable ``LiveProp `` that is some sort of ``DateTime `` instance,
616
604
you can control the format of the model on the frontend with the ``format ``
617
605
option::
@@ -719,10 +707,6 @@ make this work:
719
707
Hydrating with the Serializer
720
708
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
721
709
722
- .. versionadded :: 2.8
723
-
724
- The ``useSerializerForHydration `` option was added in LiveComponent 2.8.
725
-
726
710
To hydrate/dehydrate through Symfony's serializer, use the ``useSerializerForHydration ``
727
711
option::
728
712
@@ -1011,10 +995,6 @@ changes until loading has taken longer than a certain amount of time:
1011
995
Targeting Loading for a Specific Action
1012
996
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1013
997
1014
- .. versionadded :: 2.5
1015
-
1016
- The ``action() `` modifier was introduced in Live Components 2.5.
1017
-
1018
998
To only toggle the loading behavior when a specific action is triggered,
1019
999
use the ``action() `` modifier with the name of the action - e.g. ``saveForm() ``:
1020
1000
@@ -1028,10 +1008,6 @@ use the ``action()`` modifier with the name of the action - e.g. ``saveForm()``:
1028
1008
Targeting Loading When a Specific Model Changes
1029
1009
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1030
1010
1031
- .. versionadded :: 2.5
1032
-
1033
- The ``model() `` modifier was introduced in Live Components 2.5.
1034
-
1035
1011
You can also toggle the loading behavior only if a specific model value
1036
1012
was just changed using the ``model() `` modifier:
1037
1013
@@ -1899,10 +1875,6 @@ When the user clicks ``removeComment()``, a similar process happens.
1899
1875
Using LiveCollectionType
1900
1876
~~~~~~~~~~~~~~~~~~~~~~~~
1901
1877
1902
- .. versionadded :: 2.2
1903
-
1904
- The ``LiveCollectionType `` and the ``LiveCollectionTrait `` was added in LiveComponent 2.2.
1905
-
1906
1878
The ``LiveCollectionType `` uses the same method described above, but in
1907
1879
a generic way, so it needs even less code. This form type adds an 'Add'
1908
1880
and a 'Delete' button for each row by default, which work out of the box
@@ -2699,10 +2671,6 @@ validated. To validate it, you have to set up a `PostMount hook`_::
2699
2671
Communication Between Components: Emitting Events
2700
2672
-------------------------------------------------
2701
2673
2702
- .. versionadded :: 2.8
2703
-
2704
- The ability to emit events was added in Live Components 2.8.
2705
-
2706
2674
Events allow you to communicate between any two components that live
2707
2675
on your page.
2708
2676
@@ -2977,11 +2945,6 @@ Suppose the user updates the ``listName`` model and the parent component
2977
2945
re-renders. In this case, the child component will *not * re-render by design:
2978
2946
each component lives in its own universe.
2979
2947
2980
- .. versionadded :: 2.8
2981
-
2982
- The ``updateFromParent `` option was added in Live Components 2.8. Previously,
2983
- a child would re-render when *any * props passed into it changed.
2984
-
2985
2948
However, if the user adds a *new * todo item then we *do * want the ``TodoFooter ``
2986
2949
child component to re-render: using the new ``count `` value. To trigger this,
2987
2950
in the ``TodoFooter `` component, add the ``updateFromParent `` option::
@@ -3498,10 +3461,6 @@ When a component re-renders, the new HTML is "morphed" onto the existing
3498
3461
elements on the page. For example, if the re-render includes a new ``class ``
3499
3462
on an existing element, that class will be added to that element.
3500
3463
3501
- .. versionadded :: 2.8
3502
-
3503
- The smart re-render algorithm was introduced in LiveComponent 2.8.
3504
-
3505
3464
The rendering system is also smart enough to know when an element was changed
3506
3465
by something *outside * of the LiveComponents system: e.g. some JavaScript
3507
3466
that added a class to an element. In this case, the class will be preserved
@@ -3576,10 +3535,6 @@ In this case, any changes to the ``<select>`` element attributes will still be
3576
3535
Define another route for your Component
3577
3536
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3578
3537
3579
- .. versionadded :: 2.7
3580
-
3581
- The ``route `` option was added in LiveComponents 2.7.
3582
-
3583
3538
The default route for live components is ``/components/{_live_component}/{_live_action} ``.
3584
3539
Sometimes it may be useful to customize this URL - e.g. so that the component lives
3585
3540
under a specific firewall.
0 commit comments