Skip to content
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

Patch 2 #95

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Patch 2 #95

wants to merge 8 commits into from

Conversation

guillaumebriday
Copy link

@guillaumebriday guillaumebriday commented May 23, 2022

Merge #94 before this one

  • Attempt to improve the documentation for new comers
  • Adding examples
  • Adding spaces and bold elements

@netlify
Copy link

netlify bot commented May 23, 2022

Deploy Preview for epic-fermat-9d85e9 ready!

Name Link
🔨 Latest commit 4bf4425
🔍 Latest deploy log https://app.netlify.com/sites/epic-fermat-9d85e9/deploys/628bfaf885ba0e000a683cf1
😎 Deploy Preview https://deploy-preview-95--epic-fermat-9d85e9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

<turbo-stream action="replace" target="message_1">
<template>
<div id="message_1">
This div will replace the existing element with the DOM ID "message_1".
</div>
</template>
</turbo-stream>

<turbo-stream action="update" target="unread_count">
Copy link
Author

Choose a reason for hiding this comment

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

Let's keep it simple with one example only and a link to all possible actions

```

Note that every `<turbo-stream>` element must wrap its included HTML inside a `<template>` element.

You can render any number of stream elements in a single stream message from a WebSocket, SSE or in response to a form submission.

## Actions With Multiple Targets
Copy link
Author

Choose a reason for hiding this comment

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

Moved at the bottom of the page

@guillaumebriday
Copy link
Author

@dhh another one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant