Skip to content

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

Merged
Kocal merged 1 commit into
symfony:2.xfrom
Artusamak:patch-1
Mar 3, 2025
Merged

[LiveComponent] Document how to pass a value to an event listener from Twig.#2610
Kocal merged 1 commit into
symfony:2.xfrom
Artusamak:patch-1

Conversation

@Artusamak
Copy link
Copy Markdown
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
Copy Markdown
Member

Kocal commented Mar 3, 2025

Thank you @Artusamak.

@Kocal Kocal merged commit 314ca71 into symfony:2.x Mar 3, 2025
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