This commit is contained in:
7
app/helpers/turbo_stream_actions_helper.rb
Normal file
7
app/helpers/turbo_stream_actions_helper.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
module TurboStreamActionsHelper
|
||||
def scroll_into_view(id, animation: nil)
|
||||
turbo_stream_action_tag :scroll_into_view, target: id, animation: animation
|
||||
end
|
||||
end
|
||||
|
||||
Turbo::Streams::TagBuilder.prepend TurboStreamActionsHelper
|
||||
Reference in New Issue
Block a user