instance method
after_all
Ruby on Rails 1.3.3
Since v1.3.3 Last seen in v2.0.23Signature
after_all(targets, content = nil, **rendering, &block)
Insert the content passed in, a rendering result determined by the rendering keyword arguments, the content in the block, or the rendering of the target as a record after the targets in the dom. Examples:
<%= turbo_stream.after_all ".clearance_item", "<div class='clearance_item'>Insert after the dom target identified by the class clearance_item</div>" %>
<%= turbo_stream.after_all clearance %>
<%= turbo_stream.after_all clearance, partial: "clearances/clearance", locals: { title: "Hello" } %>
<%= turbo_stream.after_all "clearance_item" do %>
<div class='clearance_item'>Insert after the dom target identified by the class clearance_item</div>
<% end %>
Parameters
-
targetsreq -
contentopt = nil -
renderingkeyrest -
blockblock
Source
# File app/models/turbo/streams/tag_builder.rb, line 127
def after_all(targets, content = nil, **rendering, &block)
action_all :after, targets, content, **rendering, &block
end
Defined in app/models/turbo/streams/tag_builder.rb line 127
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::TagBuilder