We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9df1b2 commit 2180ecaCopy full SHA for 2180eca
src/LiveComponent/doc/index.rst
@@ -2776,6 +2776,16 @@ You can also pass extra (scalar) data to the listeners::
2776
]);
2777
}
2778
2779
+From a Twig template:
2780
+
2781
+ .. code-block:: html+twig
2782
2783
+ <button
2784
+ data-action="live#emit"
2785
+ data-live-event-param="productAdded"
2786
+ data-live-product-param="123"
2787
+ >
2788
2789
In your listeners, you can access this by adding a matching argument
2790
name with ``#[LiveArg]`` in front::
2791
0 commit comments