forked from fixin.me/fixin.me
Allow stream action to expand into multiple actions
e.g. by including 'onclick()' event handler
This commit is contained in:
@@ -15,7 +15,19 @@ ActiveSupport.on_load :turbo_streams_tag_builder do
|
||||
action_all :enable, targets, allow_inferred_rendering: false
|
||||
end
|
||||
|
||||
def blur_all
|
||||
action :blur, nil, allow_inferred_rendering: false
|
||||
end
|
||||
|
||||
def focus(target)
|
||||
action :focus, target, allow_inferred_rendering: false
|
||||
end
|
||||
|
||||
def click(target)
|
||||
action :click, target, allow_inferred_rendering: false
|
||||
end
|
||||
|
||||
def click_all(targets)
|
||||
action_all :click, targets, allow_inferred_rendering: false
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user