Skip to content

[attributes.add()] the Add() need to have an example and clarificati… #885

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mina20088
Copy link

@mina20088 mina20088 commented May 18, 2023

…on of usage and how to used

the [attributes.add()] need to have an example and clarification of usage and how to used and why it should be used

Q A
Bug fix? no
New feature? no
Tickets no issue
License MIT

…on of usage and how to used

the [attributes.add()] need to have an example and clarification of usage and how to used and why it should be used
@@ -601,6 +601,8 @@ Set an attribute's value to ``false`` to exclude the attribute:

.. versionadded:: 2.7

#this part needs more calrification and an example of how to use it and why

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose of the add() method is to be able to render a Stimulus controller on your root component element. We mention it below. Do you have a suggestion about how it could be more clear?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just give more example like for beginners they would not know what are the Stimulus controller

@mina20088
Copy link
Author

you can jsut add this link to let beginners know about the Stimulus javascript framwork

https://symfony.com/doc/current/frontend/encore/simple-example.html#stimulus-symfony-ux

@weaverryan
Copy link
Member

Thanks for the clarification - I've added it over on #887

Cheers!

@weaverryan weaverryan closed this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants