-
-
Notifications
You must be signed in to change notification settings - Fork 330
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 |
</template> | ||
</turbo-stream> | ||
|
||
For more info, see: `Turbo Streams - Prepend <https://turbo.hotwired.dev/reference/streams#prepend>`_. |
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.
I don't think we need to add these links every paragraph, as they do not bring much more to the table.
But i think we could probably show the effect on the code... and add a matching page/demo on ux.symfony.com to illustrate the effect on the various actions!
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?