turbo_helper.stream¶

Attributes¶

Classes¶

Functions¶

register_turbo_stream_action(name)

action_proxy(action[, target, targets])

https://github.com/marcoroth/turbo_power-rails/issues/35

append(target[, content])

after(target[, content])

before(target[, content])

prepend(target[, content])

remove(target, **kwargs)

replace(target[, content])

update(target[, content])

append_all(targets[, content])

after_all(targets[, content])

before_all(targets[, content])

prepend_all(targets[, content])

remove_all(targets, **kwargs)

replace_all(targets[, content])

update_all(targets[, content])

Module Contents¶

class turbo_helper.stream.TurboStream¶

https://github.com/hotwired/turbo-rails/blob/066396c67d4cee740c0348089955d7e8cdaa2cb0/app/models/turbo/streams/tag_builder.rb

registered_actions = []¶
is_registered(name)¶
action(action, target, content=None, **kwargs)¶
action_all(action, targets, content=None, **kwargs)¶
response(*args, **kwargs)¶

Shortcut for TurboStreamResponse

turbo_helper.stream.turbo_stream¶
turbo_helper.stream.register_turbo_stream_action(name)¶
turbo_helper.stream.action_proxy(action, target=None, targets=None, **kwargs)¶

https://github.com/marcoroth/turbo_power-rails/issues/35

turbo_helper.stream.append(target, content=None, **kwargs)¶
turbo_helper.stream.after(target, content=None, **kwargs)¶
turbo_helper.stream.before(target, content=None, **kwargs)¶
turbo_helper.stream.prepend(target, content=None, **kwargs)¶
turbo_helper.stream.remove(target, **kwargs)¶
turbo_helper.stream.replace(target, content=None, **kwargs)¶
turbo_helper.stream.update(target, content=None, **kwargs)¶
turbo_helper.stream.append_all(targets, content=None, **kwargs)¶
turbo_helper.stream.after_all(targets, content=None, **kwargs)¶
turbo_helper.stream.before_all(targets, content=None, **kwargs)¶
turbo_helper.stream.prepend_all(targets, content=None, **kwargs)¶
turbo_helper.stream.remove_all(targets, **kwargs)¶
turbo_helper.stream.replace_all(targets, content=None, **kwargs)¶
turbo_helper.stream.update_all(targets, content=None, **kwargs)¶