diff --git a/_source/handbook/05_streams.md b/_source/handbook/05_streams.md index a385c5b..f6ca391 100644 --- a/_source/handbook/05_streams.md +++ b/_source/handbook/05_streams.md @@ -38,6 +38,13 @@ 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 e6953fe..f8aabda 100644 --- a/_source/reference/streams.md +++ b/_source/reference/streams.md @@ -46,6 +46,16 @@ 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. @@ -58,6 +68,16 @@ 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.