Method: Turbo::Streams::TagBuilder#remove_all
- Defined in:
- app/models/turbo/streams/tag_builder.rb
#remove_all(targets) ⇒ Object
Removes the targets from the dom. The targets can either be a CSS selector string or an object that responds to to_key, which is then called and passed through ActionView::RecordIdentifier.dom_id (all Active Records do). Examples:
<%= turbo_stream.remove_all ".clearance_item" %>
<%= turbo_stream.remove_all clearance %>
67 68 69 |
# File 'app/models/turbo/streams/tag_builder.rb', line 67 def remove_all(targets) action_all :remove, targets, allow_inferred_rendering: false end |