Skip to content

Commit fc2b7d3

Browse files
committed
Update README.md with new action signatures
1 parent abd7080 commit fc2b7d3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ import 'controllers'
8888
### DOM Actions
8989

9090
* `turbo_stream.graft(targets, parent, **attributes)`
91-
* [`turbo_stream.morph(target, html = nil, **attributes, &block)`](https://github.com/marcoroth/turbo-morph)
92-
* `turbo_stream.inner_html(target, html = nil, **attributes, &block)`
91+
* [`turbo_stream.morph(targets, html = nil, **attributes, &block)`](https://github.com/marcoroth/turbo-morph)
92+
* `turbo_stream.inner_html(targets, html = nil, **attributes, &block)`
9393
* `turbo_stream.insert_adjacent_html(targets, html = nil, position: 'beforeend', **attributes, &block)`
9494
* `turbo_stream.insert_adjacent_text(targets, text, position: 'beforebegin', **attributes)`
95-
* `turbo_stream.outer_html(target, html = nil, **attributes, &block)`
96-
* `turbo_stream.text_content(target, text, **attributes)`
97-
* `turbo_stream.set_meta(name, content)`
95+
* `turbo_stream.outer_html(targets, html = nil, **attributes, &block)`
96+
* `turbo_stream.text_content(targets, text, **attributes)`
97+
* `turbo_stream.set_meta(name, content, **attributes)`
9898

9999

100100
### Attribute Actions
@@ -107,7 +107,7 @@ import 'controllers'
107107
* `turbo_stream.set_property(targets, name, value, **attributes)`
108108
* `turbo_stream.set_style(targets, name, value, **attributes)`
109109
* `turbo_stream.set_styles(targets, styles, **attributes)`
110-
* `turbo_stream.set_value(target, value, **attributes)`
110+
* `turbo_stream.set_value(targets, value, **attributes)`
111111

112112

113113
### Event Actions
@@ -156,8 +156,8 @@ import 'controllers'
156156

157157
### Debug Actions
158158

159-
* `turbo_stream.console_log(message, level = :log)`
160-
* `turbo_stream.console_table(data, columns)`
159+
* `turbo_stream.console_log(message, level = :log, **attributes)`
160+
* `turbo_stream.console_table(data, columns, **attributes)`
161161

162162

163163
### Notification Actions
@@ -173,15 +173,15 @@ import 'controllers'
173173

174174
### Turbo Progress Bar Actions
175175

176-
* `turbo_stream.turbo_progress_bar_show()`
177-
* `turbo_stream.turbo_progress_bar_hide()`
178-
* `turbo_stream.turbo_progress_bar_set_value(value)`
176+
* `turbo_stream.turbo_progress_bar_show(**attributes)`
177+
* `turbo_stream.turbo_progress_bar_hide(**attributes)`
178+
* `turbo_stream.turbo_progress_bar_set_value(value, **attributes)`
179179

180180

181181
### Turbo Frame Actions
182182

183-
* `turbo_stream.turbo_frame_reload(frame_id)`
184-
* `turbo_stream.turbo_frame_set_src(frame_id, src)`
183+
* `turbo_stream.turbo_frame_reload(frame_id, **attributes)`
184+
* `turbo_stream.turbo_frame_set_src(frame_id, src, **attributes)`
185185

186186

187187
## Development

0 commit comments

Comments
 (0)