Sha256: 243d05b05e2805538d7e2b3755adc8f213004597810c37e4c61bf8917bc96edc

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

module Rosetta
  module DialogHelper
    def within_modal(&block)
      turbo_frame_tag :dialog_content, &block
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rosetta-rails-0.2.1 app/helpers/rosetta/dialog_helper.rb
rosetta-rails-0.2.0 app/helpers/rosetta/dialog_helper.rb
rosetta-rails-0.1.1 app/helpers/rosetta/dialog_helper.rb