Skip to content

Commit

Permalink
Merge pull request #1193 from seanpdoyle/mention-refresh-action
Browse files Browse the repository at this point in the history
Update JSDoc for `StreamElement`
  • Loading branch information
brunoprietog committed Jun 21, 2024
2 parents ead8971 + 423743f commit 14284e6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/elements/stream_element.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ import { nextRepaint } from "../util"
/**
* Renders updates to the page from a stream of messages.
*
* Using the `action` attribute, this can be configured one of four ways:
* Using the `action` attribute, this can be configured one of eight ways:
*
* - `append` - appends the result to the container
* - `prepend` - prepends the result to the container
* - `replace` - replaces the contents of the container
* - `remove` - removes the container
* - `before` - inserts the result before the target
* - `after` - inserts the result after the target
* - `append` - appends the result to the target
* - `before` - inserts the result before the target
* - `prepend` - prepends the result to the target
* - `refresh` - initiates a page refresh
* - `remove` - removes the target
* - `replace` - replaces the outer HTML of the target
* - `update` - replaces the inner HTML of the target
*
* @customElement turbo-stream
* @example
* <turbo-stream action="append" target="dom_id">
* <template>
* Content to append to container designated with the dom_id.
* Content to append to target designated with the dom_id.
* </template>
* </turbo-stream>
*/
Expand Down

0 comments on commit 14284e6

Please sign in to comment.