Module: Rosetta::DialogHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/rosetta/dialog_helper.rb

Instance Method Summary collapse

Instance Method Details



7
8
9
# File 'app/helpers/rosetta/dialog_helper.rb', line 7

def modal_title(title)
  tag.h1(title, class: "hidden", data: { dialog_target: "titleSource" })
end

#within_modal(&block) ⇒ Object



3
4
5
# File 'app/helpers/rosetta/dialog_helper.rb', line 3

def within_modal(&block)
  turbo_frame_tag :dialog_content, &block
end