You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
416 B

module TurboStreamActionsHelper
def console_log(text)
turbo_stream_action_tag :console_log, text: text
end
def remote_dialog(content = nil, title:, id: 'remote-dialog', **rendering, &)
template = render_template(nil, content, **rendering, &)
turbo_stream_action_tag :remoteDialog, dialogId: id, dialogTitle: title, template:
end
end
Turbo::Streams::TagBuilder.prepend(TurboStreamActionsHelper)