Sha256: 299404ae6d5684f371f622526ba2e0e0af59fcdf90bdf31ca1d2fc7f62c7ffae

Contents?: true

Size: 515 Bytes

Versions: 10

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

module BootstrapLeather
  # Modals, i.e. content box that pops up over main document, shading out the
  # background
  module ModalsHelper
    def modal(id, title = '', close_text = 'Close', html_options = {}, &block)
      render(
        partial: 'bootstrap_leather/modals/modal',
        locals: {
          id: id,
          close_text: close_text,
          title: title,
          block: capture(&block),
          html_options: html_options
        }
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap_leather-0.10.14 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.13 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.11 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.10 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.9 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.8 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.7 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.6 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.5 app/helpers/bootstrap_leather/modals_helper.rb
bootstrap_leather-0.10.4 app/helpers/bootstrap_leather/modals_helper.rb