Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LiveComponent] Document how to pass a value to an event listener from Twig. #2610

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

Artusamak
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Issues -
License MIT

The document is missing an important use case related to Event dispatching and listeners.
There is no documentation about how to pass data from a Twig template to an event listener method within the component. This PR adds an example.

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Feb 28, 2025
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Feb 28, 2025
@Kocal Kocal changed the title Document how to pass a value to an event listener from Twig. [LiveComponent] Document how to pass a value to an event listener from Twig. Feb 28, 2025
@Kocal
Copy link
Member

Kocal commented Mar 3, 2025

Thank you @Artusamak.

@Kocal Kocal merged commit 314ca71 into symfony:2.x Mar 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LiveComponent Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants