diff --git a/_source/handbook/05_streams.md b/_source/handbook/05_streams.md index f6ca391..58807a3 100644 --- a/_source/handbook/05_streams.md +++ b/_source/handbook/05_streams.md @@ -38,13 +38,6 @@ A Turbo Streams message is a fragment of HTML consisting of `` ele - - - - - - @@ -87,6 +73,22 @@ A Turbo Streams message is a fragment of HTML consisting of `` ele + + + + + + + + ``` diff --git a/_source/reference/streams.md b/_source/reference/streams.md index f8aabda..b065a2b 100644 --- a/_source/reference/streams.md +++ b/_source/reference/streams.md @@ -46,16 +46,6 @@ Replaces the element designated by the target dom id. ``` -The `[method="morph"]` attribute can be added to the `turbo-stream` element to replace the element designated by the target dom id via morph. - -```html - - - -``` - ### Update Updates the content within the template tag to the container designated by the target dom id. @@ -68,16 +58,6 @@ Updates the content within the template tag to the container designated by the t ``` -The `[method="morph"]` attribute can be added to the `turbo-stream` element to morph only the children of the element designated by the target dom id. - -```html - - - -``` - ### Remove Removes the element designated by the target dom id. @@ -111,6 +91,28 @@ Inserts the content within the template tag after the element designated by the ``` +### Morph + +Replaces the element designated by the target dom id via morph. + +```html + + + +``` + +The `children-only` attribute can be added to the `turbo-stream` element to morph only the children of the element designated by the target dom id. + +```html + + + +``` + ### Refresh Initiates a [Page Refresh](/handbook/page_refreshes) to render new content with