-
-
Notifications
You must be signed in to change notification settings - Fork 364
[Doc] Add more examples of adding attributes in Live Components #1538
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
Conversation
It only works with attributes in a toggle way .. you may want to use addClass there i think |
Thanks for the review. I updated the PR to show an example that won't work and explain that explicitly. Thanks. |
Sorry I forgot about this PR. I did all the changes that you suggested. Thanks for the reviews! |
@javiereguiluz, did you miss pushing these changes? |
6c1eb52
to
46c4836
Compare
@kbond yes, sorry 😊 |
46c4836
to
a6f2fe6
Compare
Thanks Javier! |
Note: I tried this in a Symfony app and it didn't work ... so I'm opening this PR to ask you if this should work or if
addAttribute()
is only for empty attributes that don't define a value.Thanks!