-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
[Turbo] Document <twig:Turbo:Stream:*>
#2481
base: 2.x
Are you sure you want to change the base?
Conversation
</twig:Turbo:Stream:Append> | ||
|
||
{# renders as: #} | ||
<turbo-stream action="append" targets="#dom_id"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target
or targets
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(same comment applies for other examples)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target
becomes targets
Stream Messages and Actions | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
To render a ``<turbo-stream>`` element, we recommend using the ``<twig:Turbo:Stream:*>`` Twig Component to avoid typos. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only reason we added Turbo:Stream:*
components?
Status: Needs work |
Hi,
I added docs for #2227.
I will document
<twig:Turbo:Stream>
in a second phase.What do you think? Do you have any suggestions?